Skip to content

Commit

Permalink
util: add log when etcd watch meet cancel
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed Nov 6, 2024
1 parent 17d3f7f commit d3a2b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/owner/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ func (m *ownerManager) watchOwner(ctx context.Context, etcdSession *concurrency.
}
if resp.Canceled {
metrics.WatchOwnerCounter.WithLabelValues(m.prompt, metrics.Cancelled).Inc()
logutil.Logger(logCtx).Info("watch canceled, no owner")
logutil.Logger(logCtx).Info("watch canceled, no owner", zap.Error(resp.Err()))
return
}

Expand Down

0 comments on commit d3a2b5b

Please sign in to comment.