confighelper: fix bug that ignores enable_debug_logging option
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
1 parent
ceaa4911bb
commit
ec7936ee97
1 file changed
+1
-1
@@ -102,7 +102,7 @@ def get_configuration(server, system_args):
|
||||
except KeyError:
|
||||
raise ConfigError("No section [server] in config")
|
||||
|
||||
if server_cfg.get('enable_debug_logging', True):
|
||||
if server_cfg.getboolean('enable_debug_logging', True):
|
||||
logging.getLogger().setLevel(logging.DEBUG)
|
||||
|
||||
config['system_args'] = {
|
||||
|
||||
Reference in new issue
Block a user