Flush stdout after trace messages (#2465)
This immediately shows log messages when stdout is not connected to a tty.
This commit is contained in:
parent
7fc9662480
commit
19f88241ec
|
|
@ -148,6 +148,7 @@ void TraceLog(int logType, const char *text, ...)
|
||||||
strcat(buffer, text);
|
strcat(buffer, text);
|
||||||
strcat(buffer, "\n");
|
strcat(buffer, "\n");
|
||||||
vprintf(buffer, args);
|
vprintf(buffer, args);
|
||||||
|
fflush(stdout);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user