Browse Source

log: Flushing logs on every line

This is needed for the new testing framework since we wait for
messages to be printed on stdout. Buffering delays this
arbitrarily. Flushing so often should not have much of a performance
impact.
ppa-0.6.1
Christian Decker 8 years ago
committed by Rusty Russell
parent
commit
3f79a0e117
  1. 1
      daemon/log.c

1
daemon/log.c

@ -55,6 +55,7 @@ static void log_default_print(const char *prefix,
} else {
printf("%s \t%s\n", prefix, str);
}
fflush(stdout);
}
static size_t log_bufsize(const struct log_entry *e)

Loading…
Cancel
Save