Repository navigation
Commit bd8f53e
committed
cache sync: log per-archive messages at debug level, fixes #9659
The chunks cache sync emitted 2 INFO lines per archive:
- warm chunks.archive.d (the usual case):
"Reading cached archive chunk index for <name> ..." plus
"Merging into master chunks index ..."
- cache rebuild:
"Fetching and building archive index for <name> ..." plus
"Merging into master chunks index ..."
On repositories with many archives this floods the output of anybody
running with -v / --info, without telling them much - "Merging into
master chunks index ..." does not even name the archive.
Log these at debug level, so --info now only shows the summary:
Synchronizing chunks cache...
Archives: %d, w/ cached Idx: %d, w/ outdated Idx: %d, w/o cached Idx: %d.
Done.
Per-archive feedback for interactive use is still available via
--progress (the cache.sync progress indicator names each archive), and
borg 2 already logs all of this at debug level.1 parent 651230e commit bd8f53e
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
801 | 801 | | |
802 | 802 | | |
803 | 803 | | |
804 | | - | |
| 804 | + | |
805 | 805 | | |
806 | 806 | | |
807 | 807 | | |
| |||
869 | 869 | | |
870 | 870 | | |
871 | 871 | | |
872 | | - | |
| 872 | + | |
873 | 873 | | |
874 | 874 | | |
875 | | - | |
| 875 | + | |
876 | 876 | | |
877 | 877 | | |
878 | 878 | | |
879 | | - | |
| 879 | + | |
880 | 880 | | |
881 | 881 | | |
882 | 882 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5112 | 5112 | | |
5113 | 5113 | | |
5114 | 5114 | | |
5115 | | - | |
| 5115 | + | |
5116 | 5116 | | |
5117 | 5117 | | |
5118 | 5118 | | |
| |||
0 commit comments