Skip to content

Commit

Permalink
log when entering final sleep (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorwhitney authored Nov 2, 2021
1 parent 3bd016e commit 26c97b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ring/lifecycler.go
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,7 @@ func (i *Lifecycler) processShutdown(ctx context.Context) {
}

// Sleep so the shutdownDuration metric can be collected.
level.Info(i.logger).Log("msg", "lifecycler entering final sleep before shutdown", "final_sleep", i.cfg.FinalSleep)
time.Sleep(i.cfg.FinalSleep)
}

Expand Down

0 comments on commit 26c97b9

Please sign in to comment.