Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#352 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

@chukwudiikeh がすでに取り組んでいます。

2026年10月14日 から。

  • #353 @chukwudiikeh による — オープン

評価

この issue はまだ評価されていません。

説明

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?

主要言語
Rust
スター
142
フォーク
103
平均マージ
5日 12時間
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bitcoindevkit/bdk-cli のほかの issue

bitcoindevkit/bdk-cli の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。