forked from github/server
flush the logfile after each print (if LOG_FLUSH enabled)
This commit is contained in:
parent
6681a76268
commit
618bb6363a
|
@ -36,6 +36,9 @@ log_printf(const char * format, ...)
|
||||||
va_start(marker, format);
|
va_start(marker, format);
|
||||||
vfprintf(logfile, format, marker);
|
vfprintf(logfile, format, marker);
|
||||||
va_end(marker);
|
va_end(marker);
|
||||||
|
if (flags & LOG_FLUSH) {
|
||||||
|
fflush(logfile);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue