From 2447bb58ddcd2cdf4128358f94c6562febed93b9 Mon Sep 17 00:00:00 2001 From: Andreas Auernhammer Date: Tue, 13 Nov 2018 00:07:16 +0100 Subject: [PATCH] change received system signal output to upper case (#6761) This commit slightly improves the output of the minio server in case of a received system signal. --- cmd/signals.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/signals.go b/cmd/signals.go index f11728c97..a3f8eab4d 100644 --- a/cmd/signals.go +++ b/cmd/signals.go @@ -19,6 +19,7 @@ package cmd import ( "context" "os" + "strings" "github.com/minio/minio/cmd/logger" ) @@ -71,7 +72,7 @@ func handleSignals() { exit(err == nil && oerr == nil) case osSignal := <-globalOSSignalCh: stopHTTPTrace() - logger.Info("Exiting on signal %v", osSignal) + logger.Info("Exiting on signal: %s", strings.ToUpper(osSignal.String())) exit(stopProcess()) case signal := <-globalServiceSignalCh: switch signal {