mirror of
https://git.zavage.net/Zavage-Software/app_skellington.git
synced 2024-12-21 14:19:21 -07:00
fixed bug with incorrect variable used for logger_name
This commit is contained in:
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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user