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