Skip to content

Commit

Permalink
better backup target not exist / being ignored logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Jul 21, 2024
1 parent d23d086 commit ebe81b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prime_backup/action/create_backup_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def scan(full_path: Path, is_root_target: bool):
if ignore_patterns.match_file(rel_path) or self.config.backup.is_file_ignore_by_deprecated_ignored_files(rel_path.name):
ignored_paths.append(rel_path)
if is_root_target:
self.logger.warning('Backup target {} is ignored by config'.format(rel_path))
self.logger.warning('Backup target {} is ignored by config'.format(repr(str(rel_path))))
return

if full_path in visited_path:
Expand All @@ -240,7 +240,7 @@ def scan(full_path: Path, is_root_target: bool):
st = full_path.lstat()
except FileNotFoundError:
if is_root_target:
self.logger.info('Backup target {} does not exist, skipped. full_path: {}'.format(rel_path, full_path))
self.logger.warning('Backup target {} does not exist, skipped. full_path: {}'.format(repr(str(rel_path)), full_path))
return

entry = _ScanResultEntry(full_path, st)
Expand Down

0 comments on commit ebe81b4

Please sign in to comment.