Kaynağa Gözat
Flush stdout after trace messages (#2465)
This immediately shows log messages when stdout is not connected to a
tty.
pull/2467/head
Daniel Nagy
3 yıl önce
işlemeyi yapan:
GitHub
ebeveyn
işleme
19f88241ec
Veri tabanında bu imza için bilinen anahtar bulunamadı
GPG Anahtar Kimliği: 4AEE18F83AFDEB23
1 değiştirilmiş dosya ile
1 ekleme ve
0 silme
-
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); |
|
|
|