Skip to content

Commit

Permalink
Don't truncate log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sebr committed Nov 9, 2020
1 parent 4bcbd26 commit 228a81e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions custom_components/bhyve/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ def update(device_id, data):
self._available = True
if self._should_handle_event(event):
_LOGGER.info(
"Callback update: {} - {} - {}".format(
self.name, self._device_id, str(data)[:160]
"Message received: {} - {} - {}".format(
self.name, self._device_id, str(data)
)
)
self._ws_unprocessed_events.append(data)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/bhyve/pybhyve/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async def running(self):

msg = await self._ws.receive()
self._reset_heartbeat()
_LOGGER.debug("msg received {}".format(str(msg)[:80]))
_LOGGER.debug("msg received {}".format(str(msg)))

if msg.type == WSMsgType.TEXT:
ensure_future(self._async_callback(json.loads(msg.data)))
Expand Down
2 changes: 1 addition & 1 deletion custom_components/bhyve/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def update(device_id, data):
"""Update the state."""
_LOGGER.info(
"Program update: {} - {} - {}".format(
self.name, self._program_id, str(data)[:160]
self.name, self._program_id, str(data)
)
)
event = data.get("event")
Expand Down

0 comments on commit 228a81e

Please sign in to comment.