aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2012-12-06 11:38:41 +0000
committerBryn M. Reeves <bmr@redhat.com>2012-12-06 11:38:41 +0000
commit75a72388a3bfe1fbe4dce53e22db5754b0c26b66 (patch)
treeb4bdd470baf871b551fa49aca0d373dd625da6a0
parentf1e54d5f6e429105fa02945a637f9792e76ba0fc (diff)
downloadsos-75a72388a3bfe1fbe4dce53e22db5754b0c26b66.tar.gz
Set default console loglevel to ERROR not FATAL
Setting the default console loglevel to FATAL causes important log messages to be discarded leading to mysterious failures for e.g. when an unknown option is specified: [root@hex tmp]# sosreport --batch --debug -k psacct.all=True sosreport (version 2.3) [root@hex tmp]# Lolwhut? [root@hex tmp]# sosreport -vvvv --batch --debug -k psacct.all=True sosreport (version 2.3) no such option "all" for plugin (psacct) [root@hex tmp]#
-rw-r--r--sos/sosreport.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/sosreport.py b/sos/sosreport.py
index b8c216b4..06c426f7 100644
--- a/sos/sosreport.py
+++ b/sos/sosreport.py
@@ -331,7 +331,7 @@ class SoSReport(object):
elif self.opts.verbosity > 0:
console.setLevel(logging.INFO)
else:
- console.setLevel(logging.FATAL)
+ console.setLevel(logging.ERROR)
self.soslog.addHandler(console)
# ui log