Skip to content

recreate: show --stats output without --info - #10601

Merged
ThomasWaldmann merged 1 commit into
borgbackup:masterfrom
ThomasWaldmann:recreate-stats-master
Nov 6, 2026
Merged

ThomasWaldmann merged 1 commit into
borgbackup:masterfrom
ThomasWaldmann:recreate-stats-master

Conversation

@ThomasWaldmann

Copy link
Copy Markdown
Member

borg recreate --stats printed no statistics unless --info / -v was also given.

ArchiveRecreater.save() logged the stats via the default logger at INFO level. It now logs to the borg.output.stats topic logger, which --stats enables (same as create and import-tar).

Adds test_recreate_stats, which fails without the fix.

1.4-maint: #10600

🤖 Generated with Claude Code

ArchiveRecreater.save logged the statistics via the default logger
at INFO level, so "borg recreate --stats" printed nothing unless
--info or -v was also given.

Log them to the borg.output.stats topic logger, which --stats
enables, like create and import-tar do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.38%. Comparing base (d21017e) to head (0a319a2).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #10601   +/-   ##
=======================================
  Coverage   89.37%   89.38%           
=======================================
  Files         105      105           
  Lines       20335    20336    +1     
  Branches     3192     3192           
=======================================
+ Hits        18175    18177    +2     
- Misses       1501     1503    +2     
+ Partials      659      656    -3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@ThomasWaldmann
ThomasWaldmann merged commit 786a867 into borgbackup:master Nov 6, 2026
27 checks passed
@ThomasWaldmann
ThomasWaldmann deleted the recreate-stats-master branch November 6, 2026 00:22
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