[WF] get_new_app_events logs with mylog("none", ...) — prints every 5 s regardless of LOG_LEVEL
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
server/workflows/manager.py:82 のログ出力を読み、隣接する server/main.py:260 のログ出力と比較してください。LOG_LEVEL でイベントのない頻繁なポーリングを抑制できるよう、メッセージレベルを変更してください。その後、最小限のログ設定ではこの行が表示されず、デバッグログでは引き続き表示されることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
What installation are you running?
Production (netalertx) 📦 — ghcr.io/netalertx/netalertx:26.9.0
Is there an existing issue for this?
- I have searched the existing open and closed issues and checked the docs
Current Behavior
The app log prints one line every ~5 seconds — about 17k lines/day:
01:24:49 [WF] get_new_app_events - new events count: 0
01:24:54 [WF] get_new_app_events - new events count: 0
This happens regardless of configuration: with LOG_LEVEL='minimal', and even after removing 'WORKFLOWS' from LOADED_PLUGINS (the call comes from the core main loop in server/__main__.py, not from the plugin).
Root cause
server/workflows/manager.py line 82 logs this message with level "none":
"none" is the lowest threshold in mylog, so the message prints at every LOG_LEVEL setting — effectively an unconditional print in the hot loop. The companion message two frames up, server/__main__.py line 260 ([MAIN] Processing WORKFLOW new_events from get_new_app_events), correctly uses "debug".
Expected Behavior
A periodic poll that almost always reports count: 0 should log at "debug" (or "trace"), consistent with the adjacent __main__.py call, and be silenceable via LOG_LEVEL.
Suggested fix
One-liner: change "none" to "debug" at server/workflows/manager.py:82. Happy to send a PR if that helps.
Context
Noticed while centralizing Docker container logs (journald → VictoriaLogs): this single line accounts for ~720 rows/h of the container's output with everything tuned down. Version 26.9.0 (digest 0ee5cdca…); the line is unchanged in main @ 49cd213.
- 主要言語
- Python
- スター
- 7.2k
- フォーク
- 456
- 平均マージ
- 19時間 17分
- マージ済み PR(30日)
- 26
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
netalertx/NetAlertX のほかの issue
-
[Bug] Internet-Check returns 0.0.0.0 when IPv6 is enabled and OpenDNS lookup fails対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug 🐛
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
bug 🐛 next release/in dev image 🚀
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
netalertx/NetAlertX#1841 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
bug 🐛 next release/in dev image 🚀
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
netalertx/NetAlertX#1826 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
bug 🐛 Contributors 🙏 help wanted 🆘
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
UNFIMP does not populate devSSID for UniFi wireless clients対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンFeature request ➕ next release/in dev image 🚀 Waiting for reply⏳
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
netalertx/NetAlertX#1832 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
netalertx/NetAlertX の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ok-oldking/ok-wuthering-waves#1785 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
healthchecks/healthchecks#1349 ·
-
deployment release-lag
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
nolte/kamerplanter#2374 ·
メンテナーはふだん 1 日以内に返信
-
bug v1 v2
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
modelcontextprotocol/python-sdk#3725 ·
メンテナーはふだん 1 日以内に返信
-
batchterms() drops queries without a similar() clause, misaligning results with inputs対応中かも @MohammadHijjawi97 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信