summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PICA_log.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/PICA_log.c b/PICA_log.c
index c20edf2..3e55381 100644
--- a/PICA_log.c
+++ b/PICA_log.c
@@ -97,6 +97,7 @@ strftime(timebuf, sizeof(timebuf), "%Y-%m-%d %H:%M:%S", localtime(&log_time));
sprintf(buf, "[%.32s] %s: %.1000s\n", timebuf, loglevel_txt[loglevel - PICA_LOG_FATAL], fmt);
vfprintf(log_file, buf, args);
+fflush(log_file);
}
void PICA_set_loglevel(int loglevel)