From 75a72388a3bfe1fbe4dce53e22db5754b0c26b66 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Thu, 6 Dec 2012 11:38:41 +0000 Subject: 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]# --- sos/sosreport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit