From: Chris Duncan Date: Wed, 12 Aug 2026 00:26:43 +0000 (-0700) Subject: Log node response as truncated string instead of full object. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=386b4b42f78daa8a75b9f0cfb4e2f0b21edb51fc;p=libnemo.git Log node response as truncated string instead of full object. --- diff --git a/src/lib/rpc/block_info.ts b/src/lib/rpc/block_info.ts index 18bdcb6..5217b7c 100644 --- a/src/lib/rpc/block_info.ts +++ b/src/lib/rpc/block_info.ts @@ -92,5 +92,5 @@ export function block_info (body: unknown): BlockInfoResponse { return response } } - throw new RpcError('Invalid block_info response', { cause: body }) + throw new RpcError('Invalid block_info response', { cause: JSON.stringify(body).slice(0, 100) }) }