1
0
Fork 0
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:
Thomas Waldmann 2019-11-08 00:15:36 +01:00
parent d124cf0761
commit dd7c08ae91

View file

@ -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: