Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 1b7c88b

Browse files
authored
Print error log into log file instead of terminal (#1355) (#1358)
1 parent ca8c9f7 commit 1b7c88b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/restore/systable_restore.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func (rc *Client) RestoreSystemSchemas(ctx context.Context, f filter.Filter) {
9191
tableName := table.Info.Name
9292
if f.MatchTable(sysDB, tableName.O) {
9393
if err := rc.replaceTemporaryTableToSystable(ctx, tableName.L, db); err != nil {
94-
logutil.WarnTerm("error during merging temporary tables into system tables",
94+
log.Warn("error during merging temporary tables into system tables",
9595
logutil.ShortError(err),
9696
zap.Stringer("table", tableName),
9797
)
@@ -101,7 +101,7 @@ func (rc *Client) RestoreSystemSchemas(ctx context.Context, f filter.Filter) {
101101
}
102102
if err := rc.afterSystemTablesReplaced(ctx, tablesRestored); err != nil {
103103
for _, e := range multierr.Errors(err) {
104-
logutil.WarnTerm("error during reconfigurating the system tables", zap.String("database", sysDB), logutil.ShortError(e))
104+
log.Warn("error during reconfigurating the system tables", zap.String("database", sysDB), logutil.ShortError(e))
105105
}
106106
}
107107
}

0 commit comments

Comments
 (0)