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.
master
Andreas Auernhammer 6 years ago committed by kannappanr
parent a55a298e00
commit 2447bb58dd
  1. 3
      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 {

Loading…
Cancel
Save