better broadcast websocket logging

* Make quiter the daphne logs by raising the level to INFO instead of
DEBUG
* Output the django channels name of broadcast clients. This way, if the
queue gets backed up, we can find it in redis.
This commit is contained in:
chris meyers
2020-04-17 17:16:54 -04:00
parent 4787e69afb
commit 8592bf3e39
2 changed files with 9 additions and 8 deletions

View File

@@ -1106,9 +1106,9 @@ LOGGING = {
'handlers': ['console', 'file', 'tower_warnings'],
'level': 'WARNING',
},
'celery': { # for celerybeat connection warnings
'daphne': {
'handlers': ['console', 'file', 'tower_warnings'],
'level': 'WARNING',
'level': 'INFO',
},
'rest_framework.request': {
'handlers': ['console', 'file', 'tower_warnings'],
@@ -1139,6 +1139,10 @@ LOGGING = {
'awx.main.dispatch': {
'handlers': ['dispatcher'],
},
'awx.main.consumers': {
'handlers': ['console', 'file', 'tower_warnings'],
'level': 'INFO',
},
'awx.main.wsbroadcast': {
'handlers': ['wsbroadcast'],
},