mirror of https://github.com/tikv/client-go.git
remove the noise log when open debug level
Signed-off-by: nolouch <nolouch@gmail.com>
This commit is contained in:
parent
e80e9ca1fe
commit
4c74a838a5
|
|
@ -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`.
|
||||
|
|
|
|||
Loading…
Reference in New Issue