mirror of https://github.com/tikv/client-go.git
Merge pull request #1103 from nolouch/remove-log
remove the noise log when open debug level
This commit is contained in:
commit
57da889938
|
|
@ -15,16 +15,13 @@
|
||||||
package resourcecontrol
|
package resourcecontrol
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"reflect"
|
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/pingcap/kvproto/pkg/coprocessor"
|
"github.com/pingcap/kvproto/pkg/coprocessor"
|
||||||
"github.com/pingcap/kvproto/pkg/kvrpcpb"
|
"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/tikvrpc"
|
||||||
"github.com/tikv/client-go/v2/util"
|
"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
|
// 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.
|
// TODO: using a more accurate size rather than using the whole response size as the read bytes.
|
||||||
readBytes = uint64(r.Size())
|
readBytes = uint64(r.Size())
|
||||||
default:
|
default:
|
||||||
logutil.BgLogger().Debug("[kv resource] unknown response type to collect the info", zap.Any("type", reflect.TypeOf(r)))
|
|
||||||
return &ResponseInfo{}
|
return &ResponseInfo{}
|
||||||
}
|
}
|
||||||
// Try to get read bytes from the `detailsV2`.
|
// Try to get read bytes from the `detailsV2`.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue