add the ability to toggle DEBUG logging on dynamically

This commit is contained in:
Ryan Petrello
2019-05-13 15:35:53 -04:00
parent efddd9f679
commit b1d75327e3
9 changed files with 112 additions and 130 deletions

View File

@@ -1013,8 +1013,8 @@ LOGGING = {
'class': 'django.utils.log.AdminEmailHandler',
},
'tower_warnings': {
'level': 'WARNING',
'class':'logging.handlers.RotatingFileHandler',
# don't define a level here, it's set by settings.LOG_AGGREGATOR_LEVEL
'class':'awx.main.utils.handlers.RotatingProductionLogHandler',
'filters': ['require_debug_false'],
'filename': os.path.join(LOG_ROOT, 'tower.log'),
'maxBytes': 1024 * 1024 * 5, # 5 MB
@@ -1022,8 +1022,8 @@ LOGGING = {
'formatter':'simple',
},
'callback_receiver': {
'level': 'WARNING',
'class':'logging.handlers.RotatingFileHandler',
# don't define a level here, it's set by settings.LOG_AGGREGATOR_LEVEL
'class':'awx.main.utils.handlers.RotatingProductionLogHandler',
'filters': ['require_debug_false'],
'filename': os.path.join(LOG_ROOT, 'callback_receiver.log'),
'maxBytes': 1024 * 1024 * 5, # 5 MB
@@ -1031,8 +1031,8 @@ LOGGING = {
'formatter':'simple',
},
'dispatcher': {
'level': 'WARNING',
'class':'logging.handlers.RotatingFileHandler',
# don't define a level here, it's set by settings.LOG_AGGREGATOR_LEVEL
'class':'awx.main.utils.handlers.RotatingProductionLogHandler',
'filters': ['require_debug_false'],
'filename': os.path.join(LOG_ROOT, 'dispatcher.log'),
'maxBytes': 1024 * 1024 * 5, # 5 MB
@@ -1049,8 +1049,8 @@ LOGGING = {
'formatter': 'timed_import',
},
'task_system': {
'level': 'INFO',
'class':'logging.handlers.RotatingFileHandler',
# don't define a level here, it's set by settings.LOG_AGGREGATOR_LEVEL
'class':'awx.main.utils.handlers.RotatingProductionLogHandler',
'filters': ['require_debug_false'],
'filename': os.path.join(LOG_ROOT, 'task_system.log'),
'maxBytes': 1024 * 1024 * 5, # 5 MB