]> arthur.barton.de Git - bup.git/commitdiff
Use debug1() when reporting paths skipped bup-0.24a
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 20:57:26 +0000 (12:57 -0800)
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 4196dec0faabb6377db279892c956cf0cb437826..0bb80f8ec2268e9e8bd1e8d16e66ecf8a106fa4a 100644 (file)
@@ -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()