Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/external-rpc/handle-incoming-msg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down
5 changes: 4 additions & 1 deletion src/providers/http/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
},
}
Expand Down
Loading