Skip to content

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

Open
fjahr wants to merge 2 commits into
bitcoin:masterfrom
fjahr:2026-11-i2p-proxy-log
Open

fjahr wants to merge 2 commits into
bitcoin:masterfrom
fjahr:2026-11-i2p-proxy-log

Conversation

@fjahr

@fjahr fjahr commented Nov 24, 2026

Copy link
Copy Markdown
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.

@DrahtBot DrahtBot added the P2P label Nov 24, 2026
@DrahtBot

DrahtBot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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

External sites

Reviews

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

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #36904 (log: Remove trailing and embedded newlines from log messages by maflcko)
  • #36434 (http: support unix sockets by pinheadmz)
  • #36257 (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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants