Skip to content

Commit

Permalink
tiny adjust log
Browse files Browse the repository at this point in the history
  • Loading branch information
3AceShowHand committed Sep 6, 2024
1 parent c112178 commit cb86ebb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cdc/owner/ddl_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func (m *ddlManager) trySendBootstrap(ctx context.Context, currentTables []*mode
log.Info("start to send bootstrap messages",
zap.Stringer("changefeed", m.changfeedID),
zap.Int("tables", len(currentTables)))
for _, table := range currentTables {
for idx, table := range currentTables {
if table.TableInfo.IsView() {
continue
}
Expand All @@ -228,6 +228,8 @@ func (m *ddlManager) trySendBootstrap(ctx context.Context, currentTables []*mode
if err != nil {
log.Error("send bootstrap message failed",
zap.Stringer("changefeed", m.changfeedID),
zap.Int("tables", len(currentTables)),
zap.Int("emitted", idx+1),
zap.Duration("duration", time.Since(start)),
zap.Error(err))
m.reportError(err)
Expand Down

0 comments on commit cb86ebb

Please sign in to comment.