Repository navigation
fix: 変換ごとに呼ばれる info ログを debug レベルに変更 - #563
Merged
Merged
Conversation
以下のログが info レベルになっており、変換の都度大量出力されていた。 通常運用に不要なデバッグ情報であるため debug に変更する。 - lattice_graph: "Use user's node score" — 変換ごと・全ノード分呼ばれる (最大の問題) - extend_clause: "Keep current?" / "Keep current" — 文節伸縮ごと - graph_resolver: "collect_splited_results: too deep" — k-best 探索中の再帰 - dict/loader: mtimes, SERIALIZED, "Cache is fresh!" — 内部実装詳細 これにより mac-akaza 環境での akaza.log 肥大化(2.2 GB 超)および macOS ディスク書き込み制限(~2147 MB/86400s)超過による変換停止を防ぐ。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
変換の都度呼ばれる
info!ログをdebug!に変更する。変更箇所
lattice_graph.rs"Use user's node score: {:?}"extend_clause.rs"Keep current? ..."/"Keep current"graph_resolver.rs"collect_splited_results: too deep"dict/loader.rsmtimes,SERIALIZED,"Cache is fresh!"背景
mac-akaza 環境で
~/Library/Logs/AkazaIME/akaza.logが 2.2 GB に肥大化し、macOS のディスク書き込み制限(約 2147 MB/86400s/プロセス)に抵触して変換が停止する問題が発生した。原因の大部分がlattice_graphの"Use user's node score"メッセージ(1キーストロークで数十行出力)だった。起動時・モデルロード時の
info!ログはそのまま。RUST_LOG=debugで従来通り全ログを確認できる。