making heavy logs to debug mode (#40)
This commit is contained in:
parent
ba221ab80f
commit
30560d3d8c
@ -1328,7 +1328,7 @@ func RecordBatchRPCError(ctx context.Context, backendName string, reqs []*RPCReq
|
||||
}
|
||||
|
||||
func MaybeRecordErrorsInRPCRes(ctx context.Context, backendName string, reqs []*RPCReq, resBatch []*RPCRes) {
|
||||
log.Info("forwarded RPC request",
|
||||
log.Debug("forwarded RPC request",
|
||||
"backend", backendName,
|
||||
"auth", GetAuthCtx(ctx),
|
||||
"req_id", GetReqID(ctx),
|
||||
|
@ -301,7 +301,7 @@ func (s *Server) HandleRPC(w http.ResponseWriter, r *http.Request) {
|
||||
return !ok
|
||||
}
|
||||
|
||||
log.Info(
|
||||
log.Debug(
|
||||
"received RPC request",
|
||||
"req_id", GetReqID(ctx),
|
||||
"auth", GetAuthCtx(ctx),
|
||||
@ -457,7 +457,7 @@ func (s *Server) handleBatchRPC(ctx context.Context, reqs []json.RawMessage, isL
|
||||
|
||||
// Take base rate limit first
|
||||
if isLimited("") {
|
||||
log.Info(
|
||||
log.Debug(
|
||||
"rate limited individual RPC in a batch request",
|
||||
"source", "rpc",
|
||||
"req_id", parsedReq.ID,
|
||||
@ -470,7 +470,7 @@ func (s *Server) handleBatchRPC(ctx context.Context, reqs []json.RawMessage, isL
|
||||
|
||||
// Take rate limit for specific methods.
|
||||
if _, ok := s.overrideLims[parsedReq.Method]; ok && isLimited(parsedReq.Method) {
|
||||
log.Info(
|
||||
log.Debug(
|
||||
"rate limited specific RPC",
|
||||
"source", "rpc",
|
||||
"req_id", GetReqID(ctx),
|
||||
|
Loading…
Reference in New Issue
Block a user