Skip to content

Commit

Permalink
fix[tidb]:log
Browse files Browse the repository at this point in the history
  • Loading branch information
fishTsai20 committed Jan 23, 2024
1 parent c9713d3 commit 85bca9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion connector/tidb/datasource_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ func createDB(tidb_user string, tidb_password string, tidb_host string, tidb_por
tidb_user, tidb_password, tidb_host, tidb_port, tidb_db_name)

db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{
Logger: logger.Default.LogMode(logger.Info),
Logger: logger.Default.LogMode(logger.Warn),
})

if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion handlers/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func ProcessRecords(records []*model.Record) error {

func indexTransaction(trx *model.Transaction) error {
if trx.ReceiptStatus != 1 {
logger.Warn("transaction invalid at block ", trx.Block, ":", trx.Idx)
//logger.Warn("transaction invalid at block ", trx.Block, ":", trx.Idx)
return nil
}
// data:,
Expand Down

0 comments on commit 85bca9a

Please sign in to comment.