From 091c2fc8f53293c1dffe4f17aaeaae2633ecf1d8 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Tue, 17 Jan 2017 23:34:28 +0100 Subject: [PATCH] log: Flushing logs on each new entry This is to speed up the python testing framework and should not have a big impact on performance. --- daemon/log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/log.c b/daemon/log.c index 3011b3c13..564776204 100644 --- a/daemon/log.c +++ b/daemon/log.c @@ -421,6 +421,7 @@ static void log_to_file(const char *prefix, } else { fprintf(logf, "%s \t%s\n", prefix, str); } + fflush(logf); } static char *arg_log_to_file(const char *arg, struct log *log)