Skip to content
Snippets Groups Projects
Commit 19a1f451 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

set the log level after the config file has been parsed

parent 277616ad
No related branches found
No related tags found
No related merge requests found
......@@ -30,10 +30,6 @@
h.setFormatter(f)
log = logging.getLogger('Gajim')
log.addHandler(h)
if config.get('verbose'):
log.setLevel(logging.DEBUG)
else:
log.setLevel(None)
logger = common.logger.Logger()
DATA_DIR = '../data'
......@@ -695,6 +695,11 @@ def __init__(self):
'statusmsgcolor': gajim.config.get('statusmsgcolor'),
}
parser.read()
if gajim.config.get('verbose'):
log.setLevel(logging.DEBUG)
else:
gajim.log.setLevel(None)
for account in gajim.config.get_per('accounts'):
gajim.connections[account] = common.connection.Connection(account)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment