diff --git a/src/protocol/client.ts b/src/protocol/client.ts index 5e5cb31..9f71b86 100644 --- a/src/protocol/client.ts +++ b/src/protocol/client.ts @@ -198,7 +198,11 @@ export class ViceClient { const body = this.responseBuffer.subarray(12, totalLength); debugLog(`Parsed response: type=0x${responseType.toString(16)}, error=0x${errorCode.toString(16)}, reqId=${requestId}`); - debugLog("Response body", body); + if (body.length < 1000) { + debugLog("Response body", body); + } else { + debugLog(`Response body: ${body.length} bytes (too large to log)`); + } const response: ViceResponse = { responseType,