diff options
author | Tony Asleson <tasleson@redhat.com> | 2016-10-11 09:42:18 -0500 |
---|---|---|
committer | Tony Asleson <tasleson@redhat.com> | 2016-10-11 13:16:57 -0500 |
commit | 4fab8339207fd8846e04e775897a7ba7a3cd074c (patch) | |
tree | 22773e342f0127092bffd19246cb4a03998dbe67 | |
parent | 2830f722882d064a6ffbe143f5a580364bcba2e6 (diff) | |
download | lvm2-4fab8339207fd8846e04e775897a7ba7a3cd074c.tar.gz |
lvmdbusd: Remove log ouput when ec=0 & stderr != 0 bytes
lvm likes to log to stderr virtually all the time, this isn't
helpful.
-rw-r--r-- | daemons/lvmdbusd/cmdhandler.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/daemons/lvmdbusd/cmdhandler.py b/daemons/lvmdbusd/cmdhandler.py index 4bdbee530..fa34a7afe 100644 --- a/daemons/lvmdbusd/cmdhandler.py +++ b/daemons/lvmdbusd/cmdhandler.py @@ -108,12 +108,6 @@ def call_lvm(command, debug=False): if debug or process.returncode != 0: _debug_c(command, process.returncode, (stdout_text, stderr_text)) - if process.returncode == 0: - if cfg.args and cfg.args.debug and out[1] and len(out[1]) and \ - 'help' not in command: - log_error('WARNING: lvm is out-putting text to STDERR on success!') - _debug_c(command, process.returncode, (stdout_text, stderr_text)) - return process.returncode, stdout_text, stderr_text # The actual method which gets called to invoke the lvm command, can vary |