fixed bug with incorrect variable used for logger_name

This commit is contained in:
Mathew Guest 2022-04-20 17:44:39 -06:00
parent 1f8013bd49
commit fd5af59c59

@ -1,4 +1,4 @@
from ._bootstrap import _bootstrap_logger from ._bootstrap import _bootstrap_logger, _logger_name
from . import _util from . import _util
import appdirs import appdirs
@ -141,12 +141,12 @@ class LoggingLayer:
# logging configuration is read from config file. # logging configuration is read from config file.
# See _bootstrap.py # See _bootstrap.py
if os.environ.get('APPSKELLINGTON_DEBUG', None): if os.environ.get('APPSKELLINGTON_DEBUG', None):
if _bootstrap_logger not in config_dict['loggers']: if _logger_name not in config_dict['loggers']:
config_dict['loggers'][_bootstrap_logger] = { config_dict['loggers'][_logger_name] = {
'level': 'debug', 'propagate': 'false' 'level': 'debug', 'propagate': 'false'
} }
else: else:
config_dict['loggers'][_bootstrap_logger]['level'] = 'debug' config_dict['loggers'][_logger_name]['level'] = 'debug'
def _convert_str_to_loglevel(self, dict_, key): def _convert_str_to_loglevel(self, dict_, key):
""" """