Procházet zdrojové kódy

cleanup: move "processing files" message to expected place

(now possible as we do not lazy load the files cache any more)
Thomas Waldmann před 7 roky
rodič
revize
d3274cd2c9
2 změnil soubory, kde provedl 1 přidání a 3 odebrání
  1. 0 3
      src/borg/archive.py
  2. 1 0
      src/borg/archiver.py

+ 0 - 3
src/borg/archive.py

@@ -993,9 +993,6 @@ Utilization of max. archive size: {csize_max:.0%}
                     # read-special mode, but we better play safe as this was wrong in the past:
                     # read-special mode, but we better play safe as this was wrong in the past:
                     path_hash = None
                     path_hash = None
                     known, ids = False, None
                     known, ids = False, None
-                first_run = not cache.files and 'd' not in cache.cache_mode
-                if first_run:
-                    logger.debug('Processing files ...')
                 chunks = None
                 chunks = None
                 if ids is not None:
                 if ids is not None:
                     # Make sure all ids are available
                     # Make sure all ids are available

+ 1 - 0
src/borg/archiver.py

@@ -482,6 +482,7 @@ class Archiver:
                     skip_inodes.add((st.st_ino, st.st_dev))
                     skip_inodes.add((st.st_ino, st.st_dev))
                 except OSError:
                 except OSError:
                     pass
                     pass
+            logger.debug('Processing files ...')
             for path in args.paths:
             for path in args.paths:
                 if path == '-':  # stdin
                 if path == '-':  # stdin
                     path = 'stdin'
                     path = 'stdin'