Browse Source

do not emit warning headline, there might be no mismatches to report

instead, use a slightly different format for the warnings themselves.
Thomas Waldmann 5 years ago
parent
commit
dd7c08ae91
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/borg/repository.py

+ 1 - 2
src/borg/repository.py

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