Browse Source
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 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
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); |
|
|
|