diff --git a/src/external-rpc/handle-incoming-msg.ts b/src/external-rpc/handle-incoming-msg.ts index 134b0f5f..0f7fee21 100644 --- a/src/external-rpc/handle-incoming-msg.ts +++ b/src/external-rpc/handle-incoming-msg.ts @@ -72,11 +72,19 @@ async function _handleIncomingMessage(req: ExternalRPCIncomingMsg): Promise< } if(!reqId) { - logger.warn({ req }, 'Window RPC request missing ID') + logger.warn({ type: req.type }, 'Window RPC request missing ID') return } - logger.info({ req }, 'processing RPC request') + logger.info( + { + reqId, + type: req.type, + module: (req as { module?: string }).module, + channel: (req as { channel?: string }).channel, + }, + 'processing RPC request' + ) switch (req.type) { case 'createClaim': diff --git a/src/providers/http/index.ts b/src/providers/http/index.ts index 2c6eee83..2e9e4347 100644 --- a/src/providers/http/index.ts +++ b/src/providers/http/index.ts @@ -439,7 +439,10 @@ const HTTP_PROVIDER: Provider<'http'> = { const clientTranscript = encodeBase64(concatenateUint8Arrays(clientMsgs)) const serverTranscript = encodeBase64(concatenateUint8Arrays(serverMsgs)) - logger.debug({ request: clientTranscript, response: serverTranscript, params: paramsAny }) + logger.debug({ + requestBytes: clientTranscript.length, + responseBytes: serverTranscript.length, + }, 'http transcript captured') } }, }