From fd5af59c599418cadfa52b7c9f6c5b7737b8cb99 Mon Sep 17 00:00:00 2001 From: Mathew Guest Date: Wed, 20 Apr 2022 17:44:39 -0600 Subject: [PATCH] fixed bug with incorrect variable used for logger_name --- app_skellington/log.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app_skellington/log.py b/app_skellington/log.py index 32862b4..7ed6b2b 100644 --- a/app_skellington/log.py +++ b/app_skellington/log.py @@ -1,4 +1,4 @@ -from ._bootstrap import _bootstrap_logger +from ._bootstrap import _bootstrap_logger, _logger_name from . import _util import appdirs @@ -141,12 +141,12 @@ class LoggingLayer: # logging configuration is read from config file. # See _bootstrap.py if os.environ.get('APPSKELLINGTON_DEBUG', None): - if _bootstrap_logger not in config_dict['loggers']: - config_dict['loggers'][_bootstrap_logger] = { + if _logger_name not in config_dict['loggers']: + config_dict['loggers'][_logger_name] = { 'level': 'debug', 'propagate': 'false' } else: - config_dict['loggers'][_bootstrap_logger]['level'] = 'debug' + config_dict['loggers'][_logger_name]['level'] = 'debug' def _convert_str_to_loglevel(self, dict_, key): """