`warn!` output is invisible unless `RUST_LOG` is set
Los mantenedores suelen responder en 4 días
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de bitcoindevkit/bdk-cli
-
Remove "wallet" field from `WalletConfigInner`Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
bitcoindevkit/bdk-cli#332 · 2 comentarios ·
Los mantenedores suelen responder en 4 días
-
enhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 38/100
bitcoindevkit/bdk-cli#349 ·
Los mantenedores suelen responder en 4 días
-
`compile` doesn't validate keys and returns unusable descriptorsPosiblemente ocupada @Olorunshogo la tomó hace 5 días. Abiertoenhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
bitcoindevkit/bdk-cli#344 · 1 comentario ·
Los mantenedores suelen responder en 4 días
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 50/100
bitcoindevkit/bdk-cli#340 · 1 comentario ·
Los mantenedores suelen responder en 4 días
-
Enforce Core-compatible OP_RETURN / datacarrier and standard tx-size limits in create_txPosiblemente ocupada @tvpeter la tomó hace 18 días. Abiertoenhancement
bitcoindevkit/bdk-cli#339 · 1 asignado ·
Los mantenedores suelen responder en 4 días
Todos los issues de bitcoindevkit/bdk-cli
Issues similares
-
RUSTSEC-2026-0348: Brotli certificate decompression can allocate up to 1 GiB before authenticationAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 60/100
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 62/100
-
core: Amount::from_str panics on values above 21M BTC instead of returning an errorPosiblemente ocupada @bhuvan-somisetty la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
crate: spate-s3
Dificultad 2/5 Medio día Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
write_iceberg ignores the table's write.parquet.compression-codec propertyPosiblemente ocupada @YuangGao la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Eventual-Inc/Daft#7606 ·
Los mantenedores suelen responder en 1 día