This is an automated email from the ASF dual-hosted git repository.
hulk pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new 2ec78bc4 Fix glog may buffer the stdout's output (#2131)
2ec78bc4 is described below
commit 2ec78bc44453a14c75588fd64c8a7416c97fe744
Author: i18n-now <[email protected]>
AuthorDate: Sat Mar 2 17:09:25 2024 +0800
Fix glog may buffer the stdout's output (#2131)
---
src/cli/main.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/cli/main.cc b/src/cli/main.cc
index c03923e7..6e9b0b14 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) {