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.
This commit is contained in:
Christian Decker
2017-01-17 23:34:28 +01:00
parent 7cc5e2fc7a
commit 091c2fc8f5

View File

@@ -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)