X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flog.c;h=813cf042d56ef4d9e0832be8a3acc46d9fc7cf64;hb=8fbc54a7960312d1626f4032d5fef5bf8a37db70;hp=07903458a59093793800e9fd3c585385f487c189;hpb=49b52ead6d48488a4c1f90f372564c834da803cb;p=ppastats.git diff --git a/src/log.c b/src/log.c index 0790345..813cf04 100644 --- a/src/log.c +++ b/src/log.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2012 jeanfi@gmail.com + * Copyright (C) 2010-2014 jeanfi@gmail.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -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, ...)