verbose is now on when it is set to True in the config file

This commit is contained in:
Yann Leboulanger 2005-05-29 19:04:01 +00:00
parent 560f0665f8
commit aeae5df459
2 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,7 @@ import common.logger
version = '0.7.1'
config = common.config.Config()
connections = {}
verbose = config.get('verbose')
verbose = False
h = logging.StreamHandler()
f = logging.Formatter('%(asctime)s %(name)s: %(message)s', '%d %b %Y %H:%M:%S')

View File

@ -708,6 +708,7 @@ class Interface:
'statusmsgcolor': gajim.config.get('statusmsgcolor'),
}
parser.read()
gajim.verbose = gajim.config.get('verbose')
if gajim.verbose:
gajim.log.setLevel(gajim.logging.DEBUG)