浏览代码

Silence repeated "Processing files..." log entries when --no-files-cache

Marian Beermann 8 年之前
父节点
当前提交
389ca94407
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/borg/archive.py

+ 1 - 1
src/borg/archive.py

@@ -795,7 +795,7 @@ Number of files: {0.stats.nfiles}'''.format(
             # there should be no information in the cache about special files processed in
             # there should be no information in the cache about special files processed in
             # 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 = ids = None
             path_hash = ids = None
-        first_run = not cache.files
+        first_run = not cache.files and cache.do_files
         if first_run:
         if first_run:
             logger.debug('Processing files ...')
             logger.debug('Processing files ...')
         chunks = None
         chunks = None