Added use of fflush() to log_log()
This commit is contained in:
parent
b7414f3468
commit
783d481e07
@ -115,6 +115,7 @@ void log_log(int level, const char *file, int line, const char *fmt, ...) {
|
||||
vfprintf(stderr, fmt, args);
|
||||
va_end(args);
|
||||
fprintf(stderr, "\n");
|
||||
fflush(stderr);
|
||||
}
|
||||
|
||||
/* Log to file */
|
||||
@ -127,6 +128,7 @@ void log_log(int level, const char *file, int line, const char *fmt, ...) {
|
||||
vfprintf(L.fp, fmt, args);
|
||||
va_end(args);
|
||||
fprintf(L.fp, "\n");
|
||||
fflush(L.fp);
|
||||
}
|
||||
|
||||
/* Release lock */
|
||||
|
Loading…
Reference in New Issue
Block a user