At verbosity zero, suppressing Borg check spew to stderr about "Checking segments".
This commit is contained in:
parent
fa87aed263
commit
82e8dae948
2 changed files with 4 additions and 3 deletions
3
NEWS
3
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
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue