aboutsummaryrefslogtreecommitdiffstats
path: root/src/sosreport
diff options
context:
space:
mode:
authorshnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-03-29 16:53:18 +0000
committershnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-03-29 16:53:18 +0000
commitc2bdcda792cb586366be20f9f0d072cfc01a4f11 (patch)
tree43fd0b394c2b3b73c137a56affcee03cfe47d419 /src/sosreport
parent58a607eb58e4ce719c91c95409df8d7ef64641c9 (diff)
downloadsos-c2bdcda792cb586366be20f9f0d072cfc01a4f11.tar.gz
Another small fix to logging.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@107 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/sosreport')
-rwxr-xr-xsrc/sosreport4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sosreport b/src/sosreport
index 6812ca4d..58a8885f 100755
--- a/src/sosreport
+++ b/src/sosreport
@@ -262,8 +262,8 @@ def sosreport():
filemode='w')
# define a Handler which writes INFO messages or higher to the sys.stderr
console = logging.StreamHandler()
- if __cmdLineOpts__.verbosity:
- console.setLevel(18 - __cmdLineOpts__.verbosity)
+ if __cmdLineOpts__.verbosity > 0:
+ console.setLevel(20 - __cmdLineOpts__.verbosity)
else:
console.setLevel(logging.INFO)
console.setFormatter(logging.Formatter('%(message)s'))