From d6342ec88dfa6c743d3011180249efe298b726a5 Mon Sep 17 00:00:00 2001 From: groverlynn Date: Wed, 15 May 2024 14:13:29 +0200 Subject: [PATCH 1/3] fix log files named as UNKNOWN --- src/rime/setup.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rime/setup.cc b/src/rime/setup.cc index d188beccf5..e468cc2202 100644 --- a/src/rime/setup.cc +++ b/src/rime/setup.cc @@ -85,6 +85,9 @@ RIME_API void SetupLogging(const char* app_name, } } google::SetLogFilenameExtension(".log"); + google::SetLogSymlink(0, app_name); + google::SetLogSymlink(1, app_name); + google::SetLogSymlink(2, app_name); // Do not allow other users to read/write log files created by current // process. FLAGS_logfile_mode = 0600; From 65e833e601f62a674b0c726d82a9073a298c589b Mon Sep 17 00:00:00 2001 From: groverlynn Date: Mon, 20 May 2024 23:36:38 +0200 Subject: [PATCH 2/3] Update setup.cc --- src/rime/setup.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rime/setup.cc b/src/rime/setup.cc index e468cc2202..2a9f3b3909 100644 --- a/src/rime/setup.cc +++ b/src/rime/setup.cc @@ -85,9 +85,9 @@ RIME_API void SetupLogging(const char* app_name, } } google::SetLogFilenameExtension(".log"); - google::SetLogSymlink(0, app_name); - google::SetLogSymlink(1, app_name); - google::SetLogSymlink(2, app_name); + google::SetLogSymlink(GLOG_INFO, app_name); + google::SetLogSymlink(GLOG_WARNING, app_name); + google::SetLogSymlink(GLOG_ERROR, app_name); // Do not allow other users to read/write log files created by current // process. FLAGS_logfile_mode = 0600; From 7fb45c0f1e9a8c00a82efbe5091d394967bc82d9 Mon Sep 17 00:00:00 2001 From: groverlynn Date: Tue, 21 May 2024 00:03:01 +0200 Subject: [PATCH 3/3] Update setup.cc --- src/rime/setup.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rime/setup.cc b/src/rime/setup.cc index 2a9f3b3909..ed8a93a8e3 100644 --- a/src/rime/setup.cc +++ b/src/rime/setup.cc @@ -85,9 +85,9 @@ RIME_API void SetupLogging(const char* app_name, } } google::SetLogFilenameExtension(".log"); - google::SetLogSymlink(GLOG_INFO, app_name); - google::SetLogSymlink(GLOG_WARNING, app_name); - google::SetLogSymlink(GLOG_ERROR, app_name); + google::SetLogSymlink(google::GLOG_INFO, app_name); + google::SetLogSymlink(google::GLOG_WARNING, app_name); + google::SetLogSymlink(google::GLOG_ERROR, app_name); // Do not allow other users to read/write log files created by current // process. FLAGS_logfile_mode = 0600;