mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 05:30:18 -03:30
enable iso logger
* The namespace for isolated logging was not enabled. Add a handler and logger so that it's enabled. This is particularly useful when the logging level is switched to DEBUG
This commit is contained in:
@@ -932,6 +932,14 @@ LOGGING = {
|
|||||||
'backupCount': 5,
|
'backupCount': 5,
|
||||||
'formatter':'simple',
|
'formatter':'simple',
|
||||||
},
|
},
|
||||||
|
'isolated_manager': {
|
||||||
|
'level': 'WARNING',
|
||||||
|
'class':'logging.handlers.RotatingFileHandler',
|
||||||
|
'filename': os.path.join(LOG_ROOT, 'isolated_manager.log'),
|
||||||
|
'maxBytes': 1024 * 1024 * 5, # 5 MB
|
||||||
|
'backupCount': 5,
|
||||||
|
'formatter':'simple',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
'loggers': {
|
'loggers': {
|
||||||
'django': {
|
'django': {
|
||||||
@@ -981,6 +989,11 @@ LOGGING = {
|
|||||||
'awx.main.wsbroadcast': {
|
'awx.main.wsbroadcast': {
|
||||||
'handlers': ['wsbroadcast'],
|
'handlers': ['wsbroadcast'],
|
||||||
},
|
},
|
||||||
|
'awx.isolated.manager': {
|
||||||
|
'level': 'WARNING',
|
||||||
|
'handlers': ['console', 'file', 'isolated_manager'],
|
||||||
|
'propagate': True
|
||||||
|
},
|
||||||
'awx.isolated.manager.playbooks': {
|
'awx.isolated.manager.playbooks': {
|
||||||
'handlers': ['management_playbooks'],
|
'handlers': ['management_playbooks'],
|
||||||
'propagate': False
|
'propagate': False
|
||||||
|
|||||||
Reference in New Issue
Block a user