From 4c74a838a59121b17f2fbee1544a708812c432bf Mon Sep 17 00:00:00 2001 From: nolouch Date: Wed, 3 Jan 2024 18:15:53 +0800 Subject: [PATCH] remove the noise log when open debug level Signed-off-by: nolouch --- internal/resourcecontrol/resource_control.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/resourcecontrol/resource_control.go b/internal/resourcecontrol/resource_control.go index 23a48b3c..3319c2d3 100644 --- a/internal/resourcecontrol/resource_control.go +++ b/internal/resourcecontrol/resource_control.go @@ -15,16 +15,13 @@ package resourcecontrol import ( - "reflect" "strings" "time" "github.com/pingcap/kvproto/pkg/coprocessor" "github.com/pingcap/kvproto/pkg/kvrpcpb" - "github.com/tikv/client-go/v2/internal/logutil" "github.com/tikv/client-go/v2/tikvrpc" "github.com/tikv/client-go/v2/util" - "go.uber.org/zap" ) // RequestInfo contains information about a request that is able to calculate the RU cost @@ -140,7 +137,6 @@ func MakeResponseInfo(resp *tikvrpc.Response) *ResponseInfo { // TODO: using a more accurate size rather than using the whole response size as the read bytes. readBytes = uint64(r.Size()) default: - logutil.BgLogger().Debug("[kv resource] unknown response type to collect the info", zap.Any("type", reflect.TypeOf(r))) return &ResponseInfo{} } // Try to get read bytes from the `detailsV2`.