mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Improve websocket debug log
This commit is contained in:
parent
b1626f0091
commit
703c073e53
@ -74,11 +74,11 @@ class WebSocketHandler:
|
|||||||
if message is None:
|
if message is None:
|
||||||
break
|
break
|
||||||
|
|
||||||
self._logger.debug("Sending %s", message)
|
|
||||||
|
|
||||||
if not isinstance(message, str):
|
if not isinstance(message, str):
|
||||||
message = message_to_json(message)
|
message = message_to_json(message)
|
||||||
|
|
||||||
|
self._logger.debug("Sending %s", message)
|
||||||
|
|
||||||
await self.wsock.send_str(message)
|
await self.wsock.send_str(message)
|
||||||
|
|
||||||
# Clean up the peaker checker when we shut down the writer
|
# Clean up the peaker checker when we shut down the writer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user