Merge pull request #1377 from croneter/py3-fix-websocket

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

View file

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