瀏覽代碼

Flush stdout after trace messages (#2465)

This immediately shows log messages when stdout is not connected to a
tty.
pull/2467/head
Daniel Nagy 2 年之前
committed by GitHub
父節點
當前提交
19f88241ec
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      src/utils.c

+ 1
- 0
src/utils.c 查看文件

@ -148,6 +148,7 @@ void TraceLog(int logType, const char *text, ...)
strcat(buffer, text);
strcat(buffer, "\n");
vprintf(buffer, args);
fflush(stdout);
#endif
va_end(args);

Loading…
取消
儲存