summaryrefslogtreecommitdiff
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 7c3b8c3ea..c51a824a8 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -92,7 +92,10 @@ void do_log(int level, const char *text, ...)
va_end(argsPtr);
if (Config->writelog)
+ {
fprintf(Config->log_file,"%s %s\n",TIMESTR,textbuffer);
+ fflush(Config->log_file);
+ }
}
if (Config->nofork)