Skip to content

Commit

Permalink
Demote rpc request handling to debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
IronGauntlets authored and omerfirmak committed Jul 30, 2023
1 parent ef665c9 commit 97ea32e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jsonrpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ func (s *Server) handleRequest(req *request) (*response, error) {
start := time.Now()
reqJSON, err := json.Marshal(req)
if err == nil {
s.log.Infow("Serving RPC request", "request", string(reqJSON))
s.log.Debugw("Serving RPC request", "request", string(reqJSON))
}
defer func() {
s.log.Infow("Responding to RPC request", "method", req.Method, "id", req.ID, "took", time.Since(start))
s.log.Debugw("Responding to RPC request", "method", req.Method, "id", req.ID, "took", time.Since(start))
}()

if err = req.isSane(); err != nil {
Expand Down

0 comments on commit 97ea32e

Please sign in to comment.