소스 검색
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
No known key found for this signature in database
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); |
|
|
|