mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-12 07:08:47 +00:00
do not emit warning headline, there might be no mismatches to report
instead, use a slightly different format for the warnings themselves.
This commit is contained in:
parent
d124cf0761
commit
dd7c08ae91
1 changed files with 1 additions and 2 deletions
|
@ -1024,9 +1024,8 @@ class Repository:
|
|||
logger.error('rebuilt index: %d objects', len(self.index))
|
||||
else:
|
||||
logger.info('Index object count match.')
|
||||
line_format = '%-64s %-16s %-16s'
|
||||
line_format = 'ID: %-64s rebuilt index: %-16s committed index: %-16s'
|
||||
not_found = '<not found>'
|
||||
logger.warning(line_format, 'ID', 'rebuilt index', 'committed index')
|
||||
for key, value in self.index.iteritems():
|
||||
current_value = current_index.get(key, not_found)
|
||||
if current_value != value:
|
||||
|
|
Loading…
Add table
Reference in a new issue