Skip to content

Commit

Permalink
tweak some levels
Browse files Browse the repository at this point in the history
  • Loading branch information
anarcat committed Oct 8, 2015
1 parent d9e0594 commit 27be46a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions borg/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ def init_chunks(self):
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])
Expand Down Expand Up @@ -804,7 +804,7 @@ def missing_chunk_detector(chunk_id):
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)
Expand Down
2 changes: 1 addition & 1 deletion borg/archiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def do_check(self, args):
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:
Expand Down

0 comments on commit 27be46a

Please sign in to comment.