From ac28d2c5f07ac6064805d7ec151480c0e0ceb6ed Mon Sep 17 00:00:00 2001 From: Albert Date: Mon, 15 Jan 2024 09:59:38 +0800 Subject: [PATCH] feat: add debug log --- rpc/client.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rpc/client.go b/rpc/client.go index 2b0016db8..a569d819d 100644 --- a/rpc/client.go +++ b/rpc/client.go @@ -362,6 +362,9 @@ func (c *Client) CallContext(ctx context.Context, result interface{}, method str return err } resp := batchresp[0] + if len(resp.Result) <= 20 { + log.Debug("RPC CallContext", "response", resp) + } switch { case resp.Error != nil: return resp.Error