Skip to content

Commit

Permalink
fix log files named as UNKNOWN
Browse files Browse the repository at this point in the history
  • Loading branch information
groverlynn committed May 20, 2024
1 parent 771c94a commit d6342ec
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 @@ -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;
Expand Down

0 comments on commit d6342ec

Please sign in to comment.