Improve logging for websocket JSON loads
This commit is contained in:
parent
47251337f1
commit
dd69928b20
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue