mirror of
https://git.zavage.net/Zavage-Software/app_skellington.git
synced 2024-12-21 14:19:21 -07:00
renamed default logger and removed static reference to old name
This commit is contained in:
parent
ca144ef35d
commit
78695ed62e
@ -20,7 +20,7 @@ if not check_env_has_dependencies(libnames):
|
||||
# Logger for before the application and logging config is loaded
|
||||
# - used to log before logging is configured
|
||||
_log_fmt = '%(levelname)-7s:%(message)s'
|
||||
_logger_name = 'app_skellington'
|
||||
_logger_name = 'skell'
|
||||
_bootstrap_logger = logging.getLogger(_logger_name)
|
||||
|
||||
# NOTE(MG) Logger monkey-patch:
|
||||
|
@ -22,7 +22,6 @@ DEFAULT_LOG_SETTINGS = {
|
||||
'level': 'debug',
|
||||
'formatter': 'colored'
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'loggers': {
|
||||
@ -140,12 +139,12 @@ class LoggingLayer:
|
||||
# logging configuration is read from config file.
|
||||
# See _bootstrap.py
|
||||
if os.environ.get('APPSKELLINGTON_DEBUG', None):
|
||||
if 'app_skellington' not in config_dict['loggers']:
|
||||
config_dict['loggers']['app_skellington'] = {
|
||||
if _bootstrap_logger not in config_dict['loggers']:
|
||||
config_dict['loggers'][_bootstrap_logger] = {
|
||||
'level': 'debug', 'propagate': 'false'
|
||||
}
|
||||
else:
|
||||
config_dict['loggers']['app_skellington']['level'] = 'debug'
|
||||
config_dict['loggers'][_bootstrap_logger]['level'] = 'debug'
|
||||
|
||||
def _convert_str_to_loglevel(self, dict_, key):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user