]> arthur.barton.de Git - bup.git/commitdiff
Use debug1() when reporting paths skipped
authorAneurin Price <aneurin.price@gmail.com>
Wed, 9 Mar 2011 15:36:48 +0000 (15:36 +0000)
committerAvery Pennarun <apenwarr@gmail.com>
Thu, 10 Mar 2011 18:39:28 +0000 (18:39 +0000)
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>
lib/bup/drecurse.py

index 2dbe50c7934420f5e11d7b525d63f3f1626749d0..e0855c83197a241d50e79988ae0f5497d0cf68ad 100644 (file)
@@ -53,15 +53,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()