Skip to content

Commit

Permalink
Log the message contents if json deserialization fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Jul 17, 2017
1 parent f680450 commit a5aee9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moksha.hub/moksha/hub/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def consume_stomp_message(self, message):
try:
body = JSON.loads(message['body'])
except Exception as e:
log.warning('Cannot decode message from JSON: %s' % e)
log.warning('Cannot decode body from JSON: %s -> %r' % (e, message))
#body = {}
body = message['body']

Expand Down

0 comments on commit a5aee9f

Please sign in to comment.