Skip to content

Commit

Permalink
add captureID and changefeedID fields to warn log
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesCheung96 committed Dec 22, 2021
1 parent ad66686 commit 8024b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdc/owner/scheduler_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func (s *oldScheduler) cleanUpFinishedOperations() {
for captureID := range s.state.TaskStatuses {
s.state.PatchTaskStatus(captureID, func(status *model.TaskStatus) (*model.TaskStatus, bool, error) {
if status == nil {
log.Warn("task status of the capture is not found, may be the key in etcd was deleted.")
log.Warn("task status of the capture is not found, may be the key in etcd was deleted", zap.Any("captureID", captureID), zap.Any("changeFeedID", s.state.ID))
return status, false, nil
}

Expand Down

0 comments on commit 8024b79

Please sign in to comment.