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.
This commit is contained in:
Andreas Auernhammer 2018-11-13 00:07:16 +01:00 committed by kannappanr
parent a55a298e00
commit 2447bb58dd
1 changed files with 2 additions and 1 deletions

View File

@ -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 {