Skip to content

Commit

Permalink
Merge pull request #322 from pimlicolabs/reduce-receipt-logs
Browse files Browse the repository at this point in the history
Reduce receipt logs
  • Loading branch information
nikmel2803 authored Oct 10, 2024
2 parents b3a0882 + 6e56a63 commit ae33883
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/rpc/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,15 @@ export class Server {
reply.rpcStatus = "success"
this.fastify.log.info(
{
data: JSON.stringify(jsonRpcResponse),
data:
bundlerRequest.method ===
"eth_getUserOperationReceipt" &&
jsonRpcResponse.result
? {
...jsonRpcResponse,
result: "<reduced>"
}
: jsonRpcResponse, // do not log the full result for eth_getUserOperationReceipt to reduce log size
method: bundlerRequest.method
},
"sent reply"
Expand Down

0 comments on commit ae33883

Please sign in to comment.