From ec7936ee9744a75214df883862efddc304a67490 Mon Sep 17 00:00:00 2001 From: Arksine Date: Thu, 11 Feb 2021 15:14:40 -0500 Subject: [PATCH] confighelper: fix bug that ignores `enable_debug_logging` option Signed-off-by: Eric Callahan --- moonraker/confighelper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonraker/confighelper.py b/moonraker/confighelper.py index 6b381a8..5c67598 100644 --- a/moonraker/confighelper.py +++ b/moonraker/confighelper.py @@ -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'] = {