From 72f833dee67ca2295c0abd76fde0dce8fc58ab87 Mon Sep 17 00:00:00 2001 From: Rocka Date: Wed, 3 Jan 2024 12:12:16 +0800 Subject: [PATCH] make sure glog only write to stderr using google::LogToStderr() --- src/rime/setup.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rime/setup.cc b/src/rime/setup.cc index 309183878..c387a35f9 100644 --- a/src/rime/setup.cc +++ b/src/rime/setup.cc @@ -81,7 +81,7 @@ RIME_API void SetupLogging(const char* app_name, FLAGS_alsologtostderr = true; if (log_dir) { if (log_dir[0] == '\0') { - FLAGS_logtostderr = true; + google::LogToStderr(); } else { FLAGS_log_dir = log_dir; }