Add a --log-level flag instead of configuring logs through RUST_LOG only

Aberta
#821 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 6 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
69/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
rust
Domínio
cli, observability

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Rust
Estrelas
86
Forks
34
Merge médio
9d 20h
PRs com merge (30d)
77

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de lambdaclass/ethlambda

Todas as issues de lambdaclass/ethlambda

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.