Browse Source

At verbosity zero, suppressing Borg check spew to stderr about "Checking segments".

Dan Helfman 9 năm trước cách đây
mục cha
commit
e430b8c281
2 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 2 1
      NEWS
  2. 2 2
      atticmatic/backends/shared.py

+ 2 - 1
NEWS

@@ -2,9 +2,10 @@
 
 
  * Fix for handling of spaces in source_directories which resulted in backup up everything.
  * Fix for handling of spaces in source_directories which resulted in backup up everything.
  * Fix for broken links to Borg documentation.
  * Fix for broken links to Borg documentation.
+ * At verbosity zero, suppressing Borg check spew to stderr about "Checking segments".
  * Support for Borg --one-file-system.
  * Support for Borg --one-file-system.
  * Support for Borg create --umask.
  * Support for Borg create --umask.
- * support for file globs in source_directories.
+ * Support for file globs in source_directories.
 
 
 0.1.7
 0.1.7
 
 

+ 2 - 2
atticmatic/backends/shared.py

@@ -213,7 +213,7 @@ def check_archives(verbosity, repository, consistency_config, command):
         repository,
         repository,
     ) + _make_check_flags(checks, check_last) + verbosity_flags
     ) + _make_check_flags(checks, check_last) + verbosity_flags
 
 
-    # The check command spews to stdout even without the verbose flag. Suppress it.
+    # The check command spews to stdout/stderr even without the verbose flag. Suppress it.
     stdout = None if verbosity_flags else open(os.devnull, 'w')
     stdout = None if verbosity_flags else open(os.devnull, 'w')
 
 
-    subprocess.check_call(full_command, stdout=stdout)
+    subprocess.check_call(full_command, stdout=stdout, stderr=subprocess.STDOUT)