net: Warn only once when a proxy or the I2P proxy is unreachable #36969

pull fjahr wants to merge 2 commits into bitcoin:master from fjahr:2026-11-i2p-proxy-log changing 4 files +34 −4
  1. fjahr commented at 7:47 PM on November 24, 2026: contributor

    There seems to be consensus in #36759 to use LogWarnThenDebug when the Tor control port can't be reached as this makes such cases much less noisy. This pull aligns SOCKS5 proxies (-proxy, -onion) and the I2P SAM proxy (-i2psam) with that, making them also less noisy.

    Until now every failed attempt logged the connect() failure at info level, and I2P additionally logged "Couldn't listen" as an error. Now the first failure is logged as a warning and later ones only at debug level.

  2. i2p: Warn only once when the SAM proxy is unreachable or listening fails 5146f7f60f
  3. netbase: Warn only once when a proxy is unreachable 058e26fddd
  4. DrahtBot added the label P2P on Nov 24, 2026
  5. DrahtBot commented at 7:47 PM on November 24, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    External sites

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline and AI policy for information on the review process. A summary of reviews will appear here.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #36904 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36904.svg"></sub> (log: Remove trailing and embedded newlines from log messages by maflcko)
    • #36880 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36880.svg"></sub> (init: Fix surprising behaviors of negated options by fjahr)
    • #36257 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36257.svg"></sub> (qa: assert_equal -> assert_true/assert_false by hodlinator)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-11-29 04:51 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me