summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-11-01 10:33:02 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-11-01 15:32:54 +0800
commitb08de841267546726f452c89cc326a493ec6549c (patch)
tree2e4f1b439999d10ee42631fb1db8cb6832f3de76 /lib
parent089d0a6eb769d531129a7cd1061493a1a24b4bef (diff)
downloadtalos-petitboot-b08de841267546726f452c89cc326a493ec6549c.tar.gz
talos-petitboot-b08de841267546726f452c89cc326a493ec6549c.zip
lib/log: Always flush after writing logs
We're currently seeing empty log files from the discover server. Rather than only flishing if the server was compiled with debugging enabled, always perform the fflush. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/log/log.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/log/log.c b/lib/log/log.c
index b250a9e..a4f5c22 100644
--- a/lib/log/log.c
+++ b/lib/log/log.c
@@ -12,8 +12,7 @@ static void __log(const char *fmt, va_list ap)
if (!logf)
return;
vfprintf(logf, fmt, ap);
- if (debug)
- fflush(logf);
+ fflush(logf);
}
void pb_log(const char *fmt, ...)
OpenPOWER on IntegriCloud