X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flog.c;h=01667ff738f2bcaa3b0b928195c1cd3be6c8397b;hb=d44789915e0daa807138eaa8313e50808344e472;hp=07903458a59093793800e9fd3c585385f487c189;hpb=1b5e970c9fa6bda525f8c8ab5d2ea001084c7db7;p=ppastats.git diff --git a/src/log.c b/src/log.c index 0790345..01667ff 100644 --- a/src/log.c +++ b/src/log.c @@ -93,6 +93,7 @@ static void vlogf(int lvl, const char *fmt, va_list ap) stdf = stdout; fprintf(stdf, "[%ld] %s %s\n", tv.tv_sec, lvl_str, buffer); + fflush(stdf); } void log_printf(int lvl, const char *fmt, ...)