diff --git a/cmd/gateway-startup-msg.go b/cmd/gateway-startup-msg.go index 4ad3d4330..3029c7318 100644 --- a/cmd/gateway-startup-msg.go +++ b/cmd/gateway-startup-msg.go @@ -53,6 +53,8 @@ func printGatewayCommonMsg(apiEndpoints []string) { log.Println(colorBlue("AccessKey: ") + colorBold(fmt.Sprintf("%s ", cred.AccessKey))) log.Println(colorBlue("SecretKey: ") + colorBold(fmt.Sprintf("%s ", cred.SecretKey))) - log.Println(colorBlue("\nBrowser Access:")) - log.Println(fmt.Sprintf(getFormatStr(len(apiEndpointStr), 3), apiEndpointStr)) + if globalIsBrowserEnabled { + log.Println(colorBlue("\nBrowser Access:")) + log.Println(fmt.Sprintf(getFormatStr(len(apiEndpointStr), 3), apiEndpointStr)) + } } diff --git a/cmd/server-startup-msg.go b/cmd/server-startup-msg.go index e5da23b0c..554b42eee 100644 --- a/cmd/server-startup-msg.go +++ b/cmd/server-startup-msg.go @@ -121,8 +121,10 @@ func printServerCommonMsg(apiEndpoints []string) { } printEventNotifiers() - log.Println(colorBlue("\nBrowser Access:")) - log.Println(fmt.Sprintf(getFormatStr(len(apiEndpointStr), 3), apiEndpointStr)) + if globalIsBrowserEnabled { + log.Println(colorBlue("\nBrowser Access:")) + log.Println(fmt.Sprintf(getFormatStr(len(apiEndpointStr), 3), apiEndpointStr)) + } } // Prints bucket notification configurations.