Skip to content

Commit

Permalink
Use debug1() when reporting paths skipped
Browse files Browse the repository at this point in the history
Skipping paths during indexing is a normal event not indicative of any
problems, so need not be reported in normal operation.

Signed-off-by: Aneurin Price <aneurin.price@gmail.com>
  • Loading branch information
Aneurin authored and apenwarr committed Mar 10, 2011
1 parent d3700be commit 629c52a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/bup/drecurse.py
Expand Up @@ -52,15 +52,15 @@ def _recursive_dirlist(prepend, xdev, bup_dir=None, excluded_paths=None):
for (name,pst) in _dirlist():
if name.endswith('/'):
if xdev != None and pst.st_dev != xdev:
log('Skipping %r: different filesystem.\n' % (prepend+name))
debug1('Skipping %r: different filesystem.\n' % (prepend+name))
continue
if bup_dir != None:
if os.path.normpath(prepend+name) == bup_dir:
log('Skipping BUP_DIR.\n')
debug1('Skipping BUP_DIR.\n')
continue
if excluded_paths:
if os.path.normpath(prepend+name) in excluded_paths:
log('Skipping %r: excluded.\n' % (prepend+name))
debug1('Skipping %r: excluded.\n' % (prepend+name))
continue
try:
OsFile(name).fchdir()
Expand Down

0 comments on commit 629c52a

Please sign in to comment.