diff --git a/src/cli/main.cc b/src/cli/main.cc index c03923e7893..6e9b0b14a55 100644 --- a/src/cli/main.cc +++ b/src/cli/main.cc @@ -107,6 +107,7 @@ static void InitGoogleLog(const Config *config) { } FLAGS_stderrthreshold = google::ERROR; FLAGS_logtostdout = true; + std::setbuf(stdout, nullptr); } else { FLAGS_log_dir = config->log_dir + "/"; if (config->log_retention_days != -1) {