mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 12:41:19 -03:30
Show the data that would have been a problem sending payload
for websocket
This commit is contained in:
parent
4ed054f568
commit
819d8d1fb3
@ -83,4 +83,7 @@ def ws_receive(message):
|
||||
|
||||
|
||||
def emit_channel_notification(group, payload):
|
||||
Group(group).send({"text": json.dumps(payload, cls=DjangoJSONEncoder)})
|
||||
try:
|
||||
Group(group).send({"text": json.dumps(payload, cls=DjangoJSONEncoder)})
|
||||
except ValueError:
|
||||
logger.error("Invalid payload emitting channel {} on topic: {}".format(group, payload))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user