Skip to content

Commit 23563bc

Browse files
websocket: show more debug
1 parent 3c97106 commit 23563bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal_filesystem/lib/websocket.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ async def _connect_and_run(self):
305305
async for msg in ws:
306306
import micropython
307307
print(f"websocket.py _connect_and_run thread stack used: {micropython.stack_use()}")
308-
_log_debug(f"websocket.py _connect_and_run received msg: type={msg.type}, length: {len(msg.data)} and data={str(msg.data)[:70]}...")
308+
_log_debug(f"websocket.py _connect_and_run received msg: type={msg.type}, length: {len(msg.data)} and data={str(msg.data)[:120]}...")
309309
if not self.running:
310310
_log_debug("Not running, breaking message loop")
311311
break
@@ -331,7 +331,7 @@ async def _connect_and_run(self):
331331

332332
async def _send_async(self, data, opcode):
333333
"""Async send implementation."""
334-
_log_debug(f"Sending: opcode={opcode}, data={str(data)[:90]}...")
334+
_log_debug(f"Sending: opcode={opcode}, data={str(data)[:700]}")
335335
try:
336336
if opcode == ABNF.OPCODE_TEXT:
337337
await self.ws.send_str(data)

0 commit comments

Comments
 (0)