Skip to content

Commit

Permalink
change log level to info again
Browse files Browse the repository at this point in the history
  • Loading branch information
lance6716 committed Apr 6, 2022
1 parent 64697ca commit 9d00fd6
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions dm/pkg/schema/tracker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (s *trackerSuite) TearDownSuite(c *C) {
}

func (s *trackerSuite) TestTiDBAndSessionCfg(c *C) {
log.SetLevel(zapcore.ErrorLevel)
log.SetLevel(zapcore.InfoLevel)
table := &filter.Table{
Schema: "testdb",
Name: "foo",
Expand Down Expand Up @@ -196,7 +196,7 @@ func (s *trackerSuite) TestTiDBAndSessionCfg(c *C) {
}

func (s *trackerSuite) TestDDL(c *C) {
log.SetLevel(zapcore.ErrorLevel)
log.SetLevel(zapcore.InfoLevel)
table := &filter.Table{
Schema: "testdb",
Name: "foo",
Expand Down Expand Up @@ -274,7 +274,7 @@ func (s *trackerSuite) TestDDL(c *C) {
}

func (s *trackerSuite) TestGetSingleColumnIndices(c *C) {
log.SetLevel(zapcore.ErrorLevel)
log.SetLevel(zapcore.InfoLevel)

tracker, err := NewTracker(context.Background(), "test-tracker", defaultTestSessionCfg, s.dbConn)
c.Assert(err, IsNil)
Expand Down Expand Up @@ -317,7 +317,7 @@ func (s *trackerSuite) TestGetSingleColumnIndices(c *C) {
}

func (s *trackerSuite) TestCreateSchemaIfNotExists(c *C) {
log.SetLevel(zapcore.ErrorLevel)
log.SetLevel(zapcore.InfoLevel)

tracker, err := NewTracker(context.Background(), "test-tracker", defaultTestSessionCfg, s.dbConn)
c.Assert(err, IsNil)
Expand Down Expand Up @@ -349,7 +349,7 @@ func (s *trackerSuite) TestCreateSchemaIfNotExists(c *C) {
}

func (s *trackerSuite) TestMultiDrop(c *C) {
log.SetLevel(zapcore.ErrorLevel)
log.SetLevel(zapcore.InfoLevel)

tracker, err := NewTracker(context.Background(), "test-tracker", defaultTestSessionCfg, s.dbConn)
c.Assert(err, IsNil)
Expand Down Expand Up @@ -397,7 +397,7 @@ func (aj asJSON) String() string {
}

func (s *trackerSuite) TestCreateTableIfNotExists(c *C) {
log.SetLevel(zapcore.ErrorLevel)
log.SetLevel(zapcore.InfoLevel)
table := &filter.Table{
Schema: "testdb",
Name: "foo",
Expand Down Expand Up @@ -484,7 +484,7 @@ func (s *trackerSuite) TestCreateTableIfNotExists(c *C) {
}

func (s *trackerSuite) TestBatchCreateTableIfNotExist(c *C) {
log.SetLevel(zapcore.ErrorLevel)
log.SetLevel(zapcore.InfoLevel)
tracker, err := NewTracker(context.Background(), "test-tracker", defaultTestSessionCfg, s.dbConn)
c.Assert(err, IsNil)
defer func() {
Expand Down Expand Up @@ -600,7 +600,7 @@ func (s *trackerSuite) TestBatchCreateTableIfNotExist(c *C) {
}

func (s *trackerSuite) TestAllSchemas(c *C) {
log.SetLevel(zapcore.ErrorLevel)
log.SetLevel(zapcore.InfoLevel)
ctx := context.Background()

tracker, err := NewTracker(context.Background(), "test-tracker", defaultTestSessionCfg, s.dbConn)
Expand Down Expand Up @@ -682,7 +682,7 @@ func (s *trackerSuite) TestAllSchemas(c *C) {
}

func (s *trackerSuite) TestNotSupportedVariable(c *C) {
log.SetLevel(zapcore.ErrorLevel)
log.SetLevel(zapcore.InfoLevel)

db, mock, err := sqlmock.New()
c.Assert(err, IsNil)
Expand All @@ -708,7 +708,7 @@ func (s *trackerSuite) TestNotSupportedVariable(c *C) {
}

func (s *trackerSuite) TestInitDownStreamSQLModeAndParser(c *C) {
log.SetLevel(zapcore.ErrorLevel)
log.SetLevel(zapcore.InfoLevel)

// tracker and sqlmock
db, mock, err := sqlmock.New()
Expand Down Expand Up @@ -738,7 +738,7 @@ func (s *trackerSuite) TestInitDownStreamSQLModeAndParser(c *C) {
}

func (s *trackerSuite) TestGetDownStreamIndexInfo(c *C) {
log.SetLevel(zapcore.ErrorLevel)
log.SetLevel(zapcore.InfoLevel)

// origin table info
p := parser.New()
Expand Down Expand Up @@ -780,7 +780,7 @@ func (s *trackerSuite) TestGetDownStreamIndexInfo(c *C) {
}

func (s *trackerSuite) TestReTrackDownStreamIndex(c *C) {
log.SetLevel(zapcore.ErrorLevel)
log.SetLevel(zapcore.InfoLevel)

// origin table info
p := parser.New()
Expand Down Expand Up @@ -873,7 +873,7 @@ func (s *trackerSuite) TestReTrackDownStreamIndex(c *C) {
}

func (s *trackerSuite) TestVarchar20000(c *C) {
log.SetLevel(zapcore.ErrorLevel)
log.SetLevel(zapcore.InfoLevel)

// origin table info
p := parser.New()
Expand Down Expand Up @@ -913,7 +913,7 @@ func (s *trackerSuite) TestVarchar20000(c *C) {
}

func (s *trackerSuite) TestPlacementRule(c *C) {
log.SetLevel(zapcore.ErrorLevel)
log.SetLevel(zapcore.InfoLevel)

// origin table info
p := parser.New()
Expand Down Expand Up @@ -968,7 +968,7 @@ func TestTrackerRecreateTables(t *testing.T) {
con, err := db.Conn(context.Background())
require.NoError(t, err)
dbConn := dbconn.NewDBConn(cfg, conn.NewBaseConn(con, nil))
log.SetLevel(zapcore.ErrorLevel)
log.SetLevel(zapcore.InfoLevel)

tracker, err := NewTracker(context.Background(), "test-tracker", defaultTestSessionCfg, dbConn)
require.NoError(t, err)
Expand Down

0 comments on commit 9d00fd6

Please sign in to comment.