mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Flush stdout output
Apparently when no tty is attached, which is the case for Docker, the buffer size for stdout increases to the point that only half of the entire log might be written.
This commit is contained in:
parent
5d9e40bbd3
commit
c22c06adbe
@ -94,6 +94,7 @@ FILE* level_stdout(LOG_LEVEL level)
|
|||||||
void log_stdout(LOG_LEVEL level, const char *format, va_list args)
|
void log_stdout(LOG_LEVEL level, const char *format, va_list args)
|
||||||
{
|
{
|
||||||
vfprintf(level_stdout(level), format, args);
|
vfprintf(level_stdout(level), format, args);
|
||||||
|
fflush(level_stdout(level));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool write_log(LOG_LEVEL level, const char *format, ...)
|
bool write_log(LOG_LEVEL level, const char *format, ...)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user