Skip to content

Commit

Permalink
Make librime only log to stderr. (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
rocka authored Oct 24, 2023
1 parent af62377 commit f633dd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rimeengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ void RimeEngine::rimeStart(bool fullcheck) {
fcitx_rime_traits.distribution_code_name = "fcitx-rime";
fcitx_rime_traits.distribution_version = FCITX_RIME_VERSION;
#ifndef FCITX_RIME_NO_LOG_LEVEL
// make librime only log to stderr
// https://github.com/rime/librime/commit/6d1b9b65de4e7784a68a17d10a3e5c900e4fd511
fcitx_rime_traits.log_dir = "";
switch (rime().logLevel()) {
case NoLog:
fcitx_rime_traits.min_log_level = 4;
Expand Down

0 comments on commit f633dd5

Please sign in to comment.