refactor: Use util::log::FormatString in BaseIndex::FatalErrorf and LogConnectFailure #36580

pull maflcko wants to merge 1 commits into bitcoin:master from maflcko:2610-log-format-string changing 3 files +6 −7
  1. maflcko commented at 9:20 AM on October 20, 2026: member

    Both functions format a message that is ultimately logged, so it must not contain a redundant trailing newline. Otherwise, it could lead to escaped \x0a inside log messages.

    This continues #36397

  2. DrahtBot added the label Refactoring on Oct 20, 2026
  3. DrahtBot commented at 9:20 AM on October 20, 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.

    Type Reviewers
    ACK stickies-v

    If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  4. DrahtBot added the label CI failed on Oct 20, 2026
  5. DrahtBot commented at 10:00 AM on October 20, 2026: contributor

    <!--85328a0da195eb286784d51f73fa0af9-->

    🚧 At least one of the CI tasks failed. <sub>Task iwyu: https://github.com/bitcoin/bitcoin/actions/runs/39399987125/job/118552003400</sub> <sub>LLM reason (✨ experimental): CI failed because IWYU removed the unused <util/string.h> include from src/index/base.cpp, leaving an uncommitted diff that the lint check rejects.</sub>

    <details><summary>Hints</summary>

    Try to run the tests locally, according to the documentation. However, a CI failure may still happen due to a number of reasons, for example:

    • Possibly due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch.

    • A sanitizer issue, which can only be found by compiling with the sanitizer and running the affected test.

    • An intermittent issue.

    Leave a comment here, if you need help tracking down a confusing failure.

    </details>

  6. refactor: Use util::log::FormatString in BaseIndex::FatalErrorf and LogConnectFailure
    Both functions format a message to be logged, so it must not contain a
    redundant trailing newline. Otherwise, it could lead to escaped \x0a
    inside log messages.
    fafbcadc1b
  7. maflcko force-pushed on Oct 20, 2026
  8. DrahtBot removed the label CI failed on Oct 20, 2026
  9. stickies-v approved
  10. stickies-v commented at 9:35 AM on October 21, 2026: contributor

    ACK fafbcadc1bc512e16154649984d48b60a54f5f9d


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-10-21 18:51 UTC

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