Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

`warn!` output is invisible unless `RUST_LOG` is set

Abierto
#352 1 comentario 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 4 días

@chukwudiikeh ya está trabajando en esto.

Desde el 14/10/2026.

  • #353 de @chukwudiikeh — abierto

Evaluación

Este issue todavía no se ha evaluado.

Descripción

discussion

The PR does point at a real problem though. Even on master nothing is logged unless RUST_LOG is set, because env_logger defaults to the error level, so the mainnet warning never reaches the user:

$ bdk-cli --network=bitcoin wallets
Error: Generic error: No wallets configured yet.

$ RUST_LOG=info bdk-cli --network=bitcoin wallets
[2026-10-14T11:23:11Z WARN  bdk_cli] This is experimental software and not currently recommended for use on Bitcoin mainnet, proceed with caution.
Error: Generic error: No wallets configured yet.

Originally posted by @vadim-anfv in https://github.com/bitcoindevkit/bdk-cli/issues/336#issuecomment-6167790881


The mainnet notice is just the easiest one to show. It applies to every warn! in the codebase, and those fire when something has already gone wrong, so a plain run stays silent about problems the code did notice.

My take is that showing warnings by default would be more user friendly, with RUST_LOG left as a way to change that default rather than a prerequisite for seeing a warning.

@tvpeter what do you think about changing the default this way?

Lenguaje dominante
Rust
Estrellas
142
Forks
103
Merge medio
5 d 21 h
PR fusionados (30 d)
7

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de bitcoindevkit/bdk-cli

Todos los issues de bitcoindevkit/bdk-cli

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.