Skip to content

Commit

Permalink
make sure glog only write to stderr using google::LogToStderr()
Browse files Browse the repository at this point in the history
  • Loading branch information
rocka authored and lotem committed Jan 4, 2024
1 parent 943b8c6 commit 72f833d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rime/setup.cc
Expand Up @@ -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;
}
Expand Down

0 comments on commit 72f833d

Please sign in to comment.