adjust signal termination warning log

Signed-off-by: machine424 <ayoubmrini424@gmail.com>
This commit is contained in:
machine424 2024-03-14 18:35:40 +01:00
parent 537ce87d6b
commit 3eed6c760a
No known key found for this signature in database
GPG Key ID: A4B001A4FDEE017D
1 changed files with 2 additions and 2 deletions

View File

@ -960,8 +960,8 @@ func main() {
func() error {
// Don't forget to release the reloadReady channel so that waiting blocks can exit normally.
select {
case <-term:
level.Warn(logger).Log("msg", "Received SIGTERM, exiting gracefully...")
case sig := <-term:
level.Warn(logger).Log("msg", "Received an OS signal, exiting gracefully...", "signal", sig.String())
reloadReady.Close()
case <-webHandler.Quit():
level.Warn(logger).Log("msg", "Received termination request via web service, exiting gracefully...")