Skip to content

Commit d3a2b5b

Browse files
committed
util: add log when etcd watch meet cancel
Signed-off-by: lhy1024 <[email protected]>
1 parent 17d3f7f commit d3a2b5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/owner/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ func (m *ownerManager) watchOwner(ctx context.Context, etcdSession *concurrency.
448448
}
449449
if resp.Canceled {
450450
metrics.WatchOwnerCounter.WithLabelValues(m.prompt, metrics.Cancelled).Inc()
451-
logutil.Logger(logCtx).Info("watch canceled, no owner")
451+
logutil.Logger(logCtx).Info("watch canceled, no owner", zap.Error(resp.Err()))
452452
return
453453
}
454454

0 commit comments

Comments
 (0)