From c2bdcda792cb586366be20f9f0d072cfc01a4f11 Mon Sep 17 00:00:00 2001 From: shnavid Date: Thu, 29 Mar 2007 16:53:18 +0000 Subject: Another small fix to logging. git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@107 ef72aa8b-4018-0410-8976-d6e080ef94d8 --- src/sosreport | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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')) -- cgit