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 ( import (
"context" "context"
"os" "os"
"strings"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/cmd/logger"
) )
@ -71,7 +72,7 @@ func handleSignals() {
exit(err == nil && oerr == nil) exit(err == nil && oerr == nil)
case osSignal := <-globalOSSignalCh: case osSignal := <-globalOSSignalCh:
stopHTTPTrace() stopHTTPTrace()
logger.Info("Exiting on signal %v", osSignal) logger.Info("Exiting on signal: %s", strings.ToUpper(osSignal.String()))
exit(stopProcess()) exit(stopProcess())
case signal := <-globalServiceSignalCh: case signal := <-globalServiceSignalCh:
switch signal { switch signal {

Loading…
Cancel
Save