From 27be46a5badec15ca08afd8f158904e9dc3f8544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Thu, 8 Oct 2015 16:31:22 -0400 Subject: [PATCH] tweak some levels --- borg/archive.py | 4 ++-- borg/archiver.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/borg/archive.py b/borg/archive.py index 31514dec2..5e2a35b71 100644 --- a/borg/archive.py +++ b/borg/archive.py @@ -677,7 +677,7 @@ class ArchiveChecker: def report_progress(self, msg, error=False): if error: self.error_found = True - logger.log(logging.ERROR if error else logging.WARNING, msg) + logger.log(logging.ERROR if error else logging.INFO, msg) def identify_key(self, repository): cdata = repository.get(next(self.chunks.iteritems())[0]) @@ -804,7 +804,7 @@ class ArchiveChecker: num_archives = 1 end = 1 for i, (name, info) in enumerate(archive_items[:end]): - logger.info('Analyzing archive {} ({}/{})'.format(name, num_archives - i, num_archives)) + self.report_progress('Analyzing archive {} ({}/{})'.format(name, num_archives - i, num_archives)) archive_id = info[b'id'] if archive_id not in self.chunks: self.report_progress('Archive metadata block is missing', error=True) diff --git a/borg/archiver.py b/borg/archiver.py index 7093c6d96..116646eaf 100644 --- a/borg/archiver.py +++ b/borg/archiver.py @@ -85,7 +85,7 @@ Type "Yes I am sure" if you understand this and want to continue.\n""") if input('Do you want to continue? ') == 'Yes I am sure': break if not args.archives_only: - logger.warning('Starting repository check...') + logger.info('Starting repository check...') if repository.check(repair=args.repair): logger.info('Repository check complete, no problems found.') else: