瀏覽代碼
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
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 4AEE18F83AFDEB23
共有
1 個檔案被更改,包括
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); |
|
|
|