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

This commit is contained in:
Dan Helfman 2016-04-10 15:29:42 -07:00
parent 219408647c
commit e430b8c281
2 changed files with 4 additions and 3 deletions

3
NEWS
View File

@ -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

View File

@ -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)