Improve logging for websocket JSON loads

This commit is contained in:
croneter 2021-03-01 10:48:12 +01:00
parent 47251337f1
commit dd69928b20

View file

@ -174,9 +174,9 @@ class PMS_Websocket(WebSocket):
try:
message = loads(message)
except ValueError:
LOG.error('%s: Error decoding message from websocket',
self.__class__.__name__)
except ValueError as err:
LOG.error('%s: Error decoding message from websocket: %s',
self.__class__.__name__, err)
LOG.error(message)
return
try: