confighelper: fix bug that ignores `enable_debug_logging` option

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2021-02-11 15:14:40 -05:00
parent ceaa4911bb
commit ec7936ee97
1 changed files with 1 additions and 1 deletions

View File

@ -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'] = {