Merge pull request #1376 from croneter/fix-websocket

Improve logging for websocket JSON loads
This commit is contained in:
croneter 2021-03-07 17:20:30 +01:00 committed by GitHub
commit 9d7d33c0d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -177,9 +177,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: