diff --git a/cmd/common-main.go b/cmd/common-main.go index 9dbdd9cba..71ae5b2cd 100644 --- a/cmd/common-main.go +++ b/cmd/common-main.go @@ -430,7 +430,6 @@ func handleCommonCmdArgs(ctx *cli.Context) { if err != nil { logger.FatalIf(err, "Unable to get free port for console on the host") } - globalMinioConsolePortAuto = true consoleAddr = net.JoinHostPort("", p.String()) } diff --git a/cmd/gateway-startup-msg.go b/cmd/gateway-startup-msg.go index 6bc6ced03..8075a0841 100644 --- a/cmd/gateway-startup-msg.go +++ b/cmd/gateway-startup-msg.go @@ -48,12 +48,6 @@ func printGatewayStartupMessage(apiEndPoints []string, backendType string) { // Prints documentation message. printObjectAPIMsg() - - if globalMinioConsolePortAuto && globalBrowserEnabled { - msg := fmt.Sprintf("\nWARNING: Console endpoint is listening on a dynamic port (%s), please use --console-address \":PORT\" to choose a static port.", - globalMinioConsolePort) - logger.Info(color.RedBold(msg)) - } } // Prints common server startup message. Prints credential, region and browser access. diff --git a/cmd/globals.go b/cmd/globals.go index 2b5d362dd..1fab99e9d 100644 --- a/cmd/globals.go +++ b/cmd/globals.go @@ -173,9 +173,8 @@ var ( globalMinioAddr = "" // MinIO default port, can be changed through command line. - globalMinioPort = GlobalMinioDefaultPort - globalMinioConsolePort = "13333" - globalMinioConsolePortAuto = false + globalMinioPort = GlobalMinioDefaultPort + globalMinioConsolePort = "13333" // Holds the host that was passed using --address globalMinioHost = "" diff --git a/cmd/server-startup-msg.go b/cmd/server-startup-msg.go index 8a4167c8d..f9c87fc17 100644 --- a/cmd/server-startup-msg.go +++ b/cmd/server-startup-msg.go @@ -142,10 +142,6 @@ func printServerCommonMsg(apiEndpoints []string) { } printEventNotifiers() - if globalMinioConsolePortAuto && globalBrowserEnabled { - logger.Info(color.RedBold("\nWARNING: Console endpoint is listening on a dynamic port (%s), please use --console-address \":PORT\" to choose a static port.", - globalMinioConsolePort)) - } if globalBrowserEnabled { consoleEndpointStr := strings.Join(stripStandardPorts(getConsoleEndpoints(), globalMinioConsoleHost), " ") logger.Info(color.Blue("Console: ") + color.Bold(fmt.Sprintf("%s ", consoleEndpointStr)))