rpc: make rpc request logging at Debug level

Makes no sense polluting logs with Info. It also affects benchmarking.
This commit is contained in:
Roman Khimov 2020-01-13 16:45:36 +03:00
parent a52e016c22
commit b5f234ddef

View file

@ -99,7 +99,7 @@ func (s *Server) requestHandler(w http.ResponseWriter, httpRequest *http.Request
} }
func (s *Server) methodHandler(w http.ResponseWriter, req *Request, reqParams Params) { func (s *Server) methodHandler(w http.ResponseWriter, req *Request, reqParams Params) {
s.log.Info("processing rpc request", s.log.Debug("processing rpc request",
zap.String("method", req.Method), zap.String("method", req.Method),
zap.String("params", fmt.Sprintf("%v", reqParams))) zap.String("params", fmt.Sprintf("%v", reqParams)))