Skip to content

Commit

Permalink
fix log files named as UNKNOWN (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
groverlynn authored Sep 21, 2024
1 parent d47a812 commit 70f0634
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rime/setup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ RIME_API void SetupLogging(const char* app_name,
}
}
google::SetLogFilenameExtension(".log");
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;
Expand Down

0 comments on commit 70f0634

Please sign in to comment.