Skip to content

Commit

Permalink
change log.Panic to log.Error
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyangyu committed May 17, 2022
1 parent 756553f commit 921e72f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cdc/model/sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ func (r *RowChangedEvent) HandleKeyColumns() []*Column {
}

if len(pkeyCols) == 0 {
log.Panic("Cannot find handle key columns.", zap.Any("event", r))
log.Error("Cannot find handle key columns.", zap.Any("event", r))
}

return pkeyCols
Expand All @@ -349,7 +349,7 @@ func (r *RowChangedEvent) HandleKeyColInfos() ([]*Column, []rowcodec.ColInfo) {
}

if len(pkeyCols) == 0 {
log.Panic("Cannot find handle key columns.", zap.Any("event", r))
log.Error("Cannot find handle key columns.", zap.Any("event", r))
}

return pkeyCols, pkeyColInfos
Expand Down

0 comments on commit 921e72f

Please sign in to comment.