Permalink
Browse files

Use debug1() when reporting paths skipped

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...
1 parent d3700be commit 629c52af422e1b23a31c55673d4db420772dc376 @Aneurin Aneurin committed with apenwarr Mar 9, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/bup/drecurse.py
View
@@ -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()

0 comments on commit 629c52a

Please sign in to comment.