Skip to content

Commit

Permalink
add debug log
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed Aug 17, 2023
1 parent 2437436 commit 6f4151c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/election/leadership.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ func (ls *Leadership) Watch(serverCtx context.Context, revision int64) {
// so we check the etcd availability first.
continue
}
log.Info("request progress in watch loop")
ctx, cancel := context.WithTimeout(serverCtx, etcdutil.DefaultRequestTimeout)
if err := watcher.RequestProgress(ctx); err != nil {
log.Warn("failed to request progress in watch loop", zap.Error(err))
Expand Down

0 comments on commit 6f4151c

Please sign in to comment.