From 3a1ab9542dcb95ccfd46959620031e5574a7122a Mon Sep 17 00:00:00 2001 From: Minecraft server Date: Thu, 23 Mar 2023 13:42:37 +0000 Subject: [PATCH] Log when signal received --- whitelister/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/whitelister/main.go b/whitelister/main.go index ccd8f4e..bcccaeb 100644 --- a/whitelister/main.go +++ b/whitelister/main.go @@ -74,7 +74,8 @@ func run() error { signal.Notify(stop, syscall.SIGTERM) log.Info().Msg("running") log.Info().Msg("send SIGINT (ctrl+c) or SIGTERM to stop") - <-stop + sig := <-stop + log.Info().Msgf("got signal %#v", sig.String()) log.Info().Msg("removing command")