Skip to content

Commit 09e10c7

Browse files
authored
*: Clear redundant log methods (#444)
1 parent 2012e3e commit 09e10c7

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

pkg/ddl-checker/executable_checker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type ExecutableChecker struct {
3636

3737
// NewExecutableChecker creates a new ExecutableChecker
3838
func NewExecutableChecker() (*ExecutableChecker, error) {
39-
logutil.InitZapLogger(&logutil.LogConfig{
39+
logutil.InitLogger(&logutil.LogConfig{
4040
Config: log.Config{
4141
Level: "error",
4242
},

tidb-binlog/pump_client/client.go

-6
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import (
2727
"github.com/pingcap/tidb-tools/pkg/etcd"
2828
"github.com/pingcap/tidb-tools/pkg/utils"
2929
"github.com/pingcap/tidb-tools/tidb-binlog/node"
30-
"github.com/pingcap/tidb/util/logutil"
3130
pb "github.com/pingcap/tipb/go-binlog"
3231
pd "github.com/tikv/pd/client"
3332
"go.etcd.io/etcd/mvcc/mvccpb"
@@ -613,8 +612,3 @@ func copyPumps(pumps map[string]*PumpStatus) []*PumpStatus {
613612

614613
return ps
615614
}
616-
617-
// InitLogger initializes logger.
618-
func InitLogger(cfg *logutil.LogConfig) error {
619-
return logutil.InitZapLogger(cfg)
620-
}

0 commit comments

Comments
 (0)