remove the noise log when open debug level

Signed-off-by: nolouch <nolouch@gmail.com>
This commit is contained in:
nolouch 2024-01-03 18:15:53 +08:00
parent e80e9ca1fe
commit 4c74a838a5
1 changed files with 0 additions and 4 deletions

View File

@ -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`.