aboutsummaryrefslogtreecommitdiffstats
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index b536dceef..0eb273c8e 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -94,7 +94,10 @@ void log(int level, char *text, ...)
va_end(argsPtr);
if (Config->log_file)
+ {
fprintf(Config->log_file,"%s %s\n",TIMESTR,textbuffer);
+ fflush(Config->log_file);
+ }
if (Config->nofork)
{