We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d9ea8b commit a174f19Copy full SHA for a174f19
async_substrate_interface/sync_substrate.py
@@ -1904,8 +1904,12 @@ def _make_rpc_request(
1904
raw_websocket_logger.debug(f"WEBSOCKET_SEND> {to_send}")
1905
ws.send(to_send)
1906
request_manager.add_request(item_id, payload["id"])
1907
+ if len(stringified_payload := str(payload)) < 2_000:
1908
+ output_payload = stringified_payload
1909
+ else:
1910
+ output_payload = f"{stringified_payload[:2_000]} (truncated)"
1911
logger.debug(
- f"Submitted payload ID {payload['id']} with websocket ID {item_id}: {payload}"
1912
+ f"Submitted payload ID {payload['id']} with websocket ID {item_id}: {output_payload}"
1913
)
1914
1915
while True:
0 commit comments