Commit 90709b33 authored by Max Kellermann's avatar Max Kellermann

LogInit: make stderr line-buffered

Make sure everything gets logged right away. No delays because stdio's buffer is not yet full.
parent 81f17d10
......@@ -111,6 +111,9 @@ log_early_init(bool verbose)
#ifdef ANDROID
(void)verbose;
#else
/* force stderr to be line-buffered */
setvbuf(stderr, nullptr, _IOLBF, 0);
if (verbose)
SetLogThreshold(LogLevel::DEBUG);
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment