mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
fix: server/gateway banner formatting (#11230)
This commit is contained in:
parent
b78521cd69
commit
f8ca859790
@ -58,10 +58,10 @@ func printGatewayCommonMsg(apiEndpoints []string) {
|
|||||||
apiEndpointStr := strings.Join(apiEndpoints, " ")
|
apiEndpointStr := strings.Join(apiEndpoints, " ")
|
||||||
|
|
||||||
// Colorize the message and print.
|
// Colorize the message and print.
|
||||||
logStartupMessage(color.Blue("Endpoint: ") + color.Bold(fmt.Sprintf(getFormatStr(len(apiEndpointStr), 1), apiEndpointStr)))
|
logStartupMessage(color.Blue("Endpoint: ") + color.Bold(fmt.Sprintf("%s ", apiEndpointStr)))
|
||||||
if color.IsTerminal() && !globalCLIContext.Anonymous {
|
if color.IsTerminal() && !globalCLIContext.Anonymous {
|
||||||
logStartupMessage(color.Blue("RootUser: ") + color.Bold(fmt.Sprintf("%s ", cred.AccessKey)))
|
logStartupMessage(color.Blue("RootUser: ") + color.Bold(fmt.Sprintf("%s ", cred.AccessKey)))
|
||||||
logStartupMessage(color.Blue("RootPassword: ") + color.Bold(fmt.Sprintf("%s ", cred.SecretKey)))
|
logStartupMessage(color.Blue("RootPass: ") + color.Bold(fmt.Sprintf("%s ", cred.SecretKey)))
|
||||||
}
|
}
|
||||||
printEventNotifiers()
|
printEventNotifiers()
|
||||||
|
|
||||||
|
@ -135,12 +135,12 @@ func printServerCommonMsg(apiEndpoints []string) {
|
|||||||
apiEndpointStr := strings.Join(apiEndpoints, " ")
|
apiEndpointStr := strings.Join(apiEndpoints, " ")
|
||||||
|
|
||||||
// Colorize the message and print.
|
// Colorize the message and print.
|
||||||
logStartupMessage(color.Blue("Endpoint: ") + color.Bold(fmt.Sprintf(getFormatStr(len(apiEndpointStr), 1), apiEndpointStr)))
|
logStartupMessage(color.Blue("Endpoint: ") + color.Bold(fmt.Sprintf("%s ", apiEndpointStr)))
|
||||||
if color.IsTerminal() && !globalCLIContext.Anonymous {
|
if color.IsTerminal() && !globalCLIContext.Anonymous {
|
||||||
logStartupMessage(color.Blue("RootUser: ") + color.Bold(fmt.Sprintf("%s ", cred.AccessKey)))
|
logStartupMessage(color.Blue("RootUser: ") + color.Bold(fmt.Sprintf("%s ", cred.AccessKey)))
|
||||||
logStartupMessage(color.Blue("RootPassword: ") + color.Bold(fmt.Sprintf("%s ", cred.SecretKey)))
|
logStartupMessage(color.Blue("RootPass: ") + color.Bold(fmt.Sprintf("%s ", cred.SecretKey)))
|
||||||
if region != "" {
|
if region != "" {
|
||||||
logStartupMessage(color.Blue("Region: ") + color.Bold(fmt.Sprintf(getFormatStr(len(region), 3), region)))
|
logStartupMessage(color.Blue("Region: ") + color.Bold(fmt.Sprintf(getFormatStr(len(region), 2), region)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
printEventNotifiers()
|
printEventNotifiers()
|
||||||
@ -164,7 +164,7 @@ func printEventNotifiers() {
|
|||||||
|
|
||||||
arnMsg := color.Blue("SQS ARNs: ")
|
arnMsg := color.Blue("SQS ARNs: ")
|
||||||
for _, arn := range arns {
|
for _, arn := range arns {
|
||||||
arnMsg += color.Bold(fmt.Sprintf(getFormatStr(len(arn), 1), arn))
|
arnMsg += color.Bold(fmt.Sprintf("%s ", arn))
|
||||||
}
|
}
|
||||||
|
|
||||||
logStartupMessage(arnMsg)
|
logStartupMessage(arnMsg)
|
||||||
|
Loading…
Reference in New Issue
Block a user