Skip to content

Commit

Permalink
remove debug log
Browse files Browse the repository at this point in the history
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
  • Loading branch information
Little-Wallace committed Nov 1, 2021
1 parent e4a26ac commit ad3e6fa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions br/pkg/lightning/restore/tidb.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,11 @@ func DBFromConfig(ctx context.Context, dsn config.DBStore) (*sql.DB, error) {

for k, v := range vars {
q := fmt.Sprintf("SET SESSION %s = %s;", k, v)
log.L().Info("Set session", zap.String("query", q))
if _, err1 := db.ExecContext(ctx, q); err1 != nil {
log.L().Warn("set session variable failed, will skip this query", zap.String("query", q),
zap.Error(err1))
delete(vars, k)
}
log.L().Info("Set session End")
}
_ = db.Close()

Expand Down

0 comments on commit ad3e6fa

Please sign in to comment.