summaryrefslogtreecommitdiff
path: root/src/log_targets.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/log_targets.h')
-rw-r--r--src/log_targets.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/log_targets.h b/src/log_targets.h
index 66f13a0..8357f4d 100644
--- a/src/log_targets.h
+++ b/src/log_targets.h
@@ -236,6 +236,7 @@ void log_target_file_log(log_target_t* self, log_prio_t prio, const char* msg)
return;
fprintf(((log_target_file_param_t*)(self->param_))->file_, "%s-%s\n", log_prio_to_string(prio), msg);
+ fflush(((log_target_file_param_t*)(self->param_))->file_);
}
void log_target_file_close(log_target_t* self)