mirror of
https://git.zavage.net/Zavage-Software/app_skellington.git
synced 2024-12-21 22:29:20 -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
|
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):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user