Skip to content

client: the snapshot commands print the configured log levels, not every debug record - #117

Merged
EnzinoBB merged 3 commits into
masterfrom
fix/cli-log-level
Oct 27, 2026
Merged

EnzinoBB merged 3 commits into
masterfrom
fix/cli-log-level

Conversation

@EnzinoBB

Copy link
Copy Markdown
Collaborator

Summary

--download-snapshot, --import-snapshot and --export-snapshot end before Peer sets the logger up, so Boost.Log's default sink printed every record the import makes to the console: about 684,000 debug and trace lines (86 MB of job log) for one --download-snapshot on Linux, the Docker first start included. They now call logger::initialize with the configuration's logger settings, as a running node does, and clean up when they end. The import's log goes to log/ like the node's; the command's own report lines (download-snapshot: …, import-snapshot: …) are plain output and unchanged.

Test plan

  • Robustness rows that run the commands: snapshot-download, snapshot-download-corrupt, snapshot-corrupt, snapshot-join, snapshot-join-format1: green
  • This PR's CI

🤖 Generated with Claude Code

EnzinoBB and others added 3 commits October 27, 2026 14:26
…vels

--download-snapshot, --import-snapshot and --export-snapshot end before Peer sets the logger up, so
Boost.Log's default sink printed every record the import makes to the console: 684,000 debug and
trace lines for one --download-snapshot on Linux (the Docker first start included). They now call
logger::initialize with the configuration's logger settings, as a running node does, and clean up
at the end; the log of the import goes to log/ like the node's.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@EnzinoBB
EnzinoBB merged commit a1736c7 into master Oct 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant