AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 22 Bitcoin

Merge bitcoin/bitcoin#34729: Reduce log noise

Public commit record

What the developer wrote

Authored by Ava Chow

76/100 · Adequate
Merge bitcoin/bitcoin#34729: Reduce log noise

91f8b365e7e7887e59240651c2c76b1a64071233 validation: Upgrade log levels for possible block corruption warnings (Anthony Towns)
788242d6d009e57cdf9f132bea1a6aee1c23c6f5 txindex: Downgrade log messages and include index name (Anthony Towns)
93b9613b764a046148b426abf63d1a1f5058f019 kernel/coinstats: Downgrade ComputeUTXOStats log level (Anthony Towns)
3c4336631e3d05705521cc5c1001b73bc5a6cd1d script: Lower level of oversized redeemScript log, push errors to callers (Anthony Towns)
7902a8ee83fc1b81e29710b0b00b2316b42cacef netbase: Tidy up logging levels (Anthony Towns)
4f42b76ca76b54de5b4794e2402aaa5ea2925862 netbase: Reduce levels of socks5 error logging (Anthony Towns)
ec627b3f3b82929bf517fd5d00d0ea54f4fcc187 util/log: Add LogWarnThenDebug() helper (Anthony Towns)

Pull request description:

This set of changes reduces some of the exaggerated logging that was introduced in #29236 when "error()" logging was upgraded from `LogPrintf` (aka `LogInfo`) to `LogError`. It also introduces `LogWarnThenDebug()` which duplicates the behaviour of #34549 which issues a warning the first time the log line is hit, but downgrades that to categorized debug messages afterwards. This function is used for failures that are likely caused by system configuration problems (so likely degrade the node's functionality and warrant admin attention) but are triggered by remote activity and thus could occur frequently.

ACKs for top commit:
achow101:
ACK 91f8b365e7e7887e59240651c2c76b1a64071233
l0rinc:
lightweight re-ACK 91f8b365e7e7887e59240651c2c76b1a64071233
sedited:
Re-ACK 91f8b365e7e7887e59240651c2c76b1a64071233

Tree-SHA512: a90fc070f378322c336f7169aaf9545bca65c93078ea5b86a59585fb72d01196a7f3fd5d28a172d49c5d6c2abf61ba4b0d7dca4783965ae827631543cc3940d8
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit is a logging cleanup. It reduces the severity of many routine or remote-triggered error messages so they don't flood node operators with false alarms, and adds a helper that issues a warning only the first time a problem occurs then switches to debug-level logs. It is not a security fix for a vulnerability.

Recommended action

No security action required. Treat as routine maintenance. Operators should be aware that some previously Error-level network/proxy messages are now Debug/Warning, so real configuration problems may be less visible unless debug logging is enabled or the first warning is noticed.

Security signals we found

01

Logging-only change; no memory safety, cryptography, consensus, or authorization logic altered

02

New `LogWarnThenDebug` helper uses a static `std::atomic<bool>` to warn once then log as debug

03

One functional behavior change: `AddCScript` return value is now checked in `bitcoin-tx` and wallet tests, and oversized redeemScript logs at Info instead of Error

04

Validation block-validation error and missing-input messages upgraded from Info to Warning

Risk score

Why this scored 22/100

Our methodology →
Potential impact 2/30
Exploitability 0/25
Stealth signal 3/15
Affected reach 5/15
Confidence 8/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.