Add a --log-level flag instead of configuring logs through RUST_LOG only
維護者通常 6 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 69/100
- Issue 類型
- 功能
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- rust
- 領域
- cli, observability
研究方向
Start in bin/ethlambda/src/main.rs at the beacon, node and validator command definitions, then trace init_node_logging and node_log_filter to see how the default info floor and RUST_LOG directives interact. Add the proposed flag to all three commands while preserving per-target overrides and the gossipsub cap behavior. Done means each command exposes the flag in --help and the selected level sets the filter floor.
由索引模型根據 Issue 內容生成。
描述
Summary
Log verbosity can only be set through RUST_LOG (init_node_logging and node_log_filter, bin/ethlambda/src/main.rs). The default is info, with libp2p_gossipsub capped at error. None of beacon, node or validator takes a log-level flag, so the setting doesn't show up in --help.
Where it shows up
ethereum-package passes Lighthouse (--debug-level), Teku (--logging), Lodestar (--logLevel), Nimbus (--log-level) and Prysm (--verbosity) their log level as a flag. For ethlambda, the launchers in ethpandaops/ethereum-package#1515 set RUST_LOG in the container environment instead. The same goes for docker-compose files, systemd units and anything else that only builds a command line.
Proposal
--log-level <error|warn|info|debug|trace> on all three sub-commands, setting the floor that node_log_filter currently hard-codes as info. RUST_LOG keeps working for per-target directives on top of it, and the gossipsub cap stays unless a directive names that target, as it does now.
- 主要語言
- Rust
- 星號
- 86
- 分支
- 34
- 平均合併
- 9 天 20 小時
- 30 天內合併 PR
- 77
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
lambdaclass/ethlambda 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
lambdaclass/ethlambda#850 ·
維護者通常 6 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
lambdaclass/ethlambda#777 · 1 個 reaction ·
維護者通常 6 天內回覆
-
Run all gossip validation tests可能重新可做 @dicethedev 於 9 天前認領,目前沒有進行中的 PR。 未關閉
難度 2/5 1-3 小時 新手友好度 62/100
lambdaclass/ethlambda#725 · 2 則留言 ·
維護者通常 6 天內回覆
-
Handle malformed DB data可能重新可做 @dicethedev 於 115 天前認領,目前沒有進行中的 PR。 未關閉
難度 2/5 1-3 小時 新手友好度 76/100
lambdaclass/ethlambda#529 · 4 則留言 ·
維護者通常 6 天內回覆
-
Document architectural choices可能重新可做 @dicethedev 於 115 天前認領,目前沒有進行中的 PR。 未關閉
難度 2/5 1-3 小時 新手友好度 68/100
lambdaclass/ethlambda#521 · 2 則留言 ·
維護者通常 6 天內回覆
查看 lambdaclass/ethlambda 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 84/100
antithesishq/bombadil#473 ·
維護者通常 2 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 72/100
libracoder/kiri#669 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 88/100
維護者通常 5 天內回覆
-
autofixer: follow-up
難度 2/5 1-3 小時 新手友好度 75/100
tursodatabase/turso#12217 ·
維護者通常 1 天內回覆
-
Declare the CMS schema library in the optional recipients extra可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉area:python in-progress
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆