sos/sos-silence-could-not-run.patch

25 lines
896 B
Diff

commit f81df25a32ff525f965a52581711ff06563166b5
Author: Bryn M. Reeves <bmr@redhat.com>
Date: Mon Jun 10 19:50:28 2013 +0100
Reduce level of 'could not run' messages info->debug
We expect not to find all commands; don't output a log message on
each missing binary.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index 70711a3..e25f035 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -543,7 +543,7 @@ class Plugin(object):
# pylint: disable-msg = W0612
status, shout, runtime = sos_get_command_output(exe, timeout=timeout)
if (status == 127):
- self.soslog.info("could not run '%s': command not found" % exe)
+ self.soslog.debug("could not run '%s': command not found" % exe)
return None
if suggest_filename: