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
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):
"""