mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
Init: Print SQS ARNs after globalEventNotifier is inited. (#2682)
fixes #2681
This commit is contained in:
parent
e6fd664331
commit
54a9f59a13
@ -416,6 +416,9 @@ func serverMain(c *cli.Context) {
|
|||||||
errorIf(err, "intializing object layer failed")
|
errorIf(err, "intializing object layer failed")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printEventNotifiers()
|
||||||
|
|
||||||
objLayerMutex.Lock()
|
objLayerMutex.Lock()
|
||||||
globalObjectAPI = newObject
|
globalObjectAPI = newObject
|
||||||
objLayerMutex.Unlock()
|
objLayerMutex.Unlock()
|
||||||
|
@ -60,14 +60,25 @@ func printServerCommonMsg(endPoints []string) {
|
|||||||
console.Println(colorBlue("AccessKey: ") + colorBold(fmt.Sprintf("%s ", cred.AccessKeyID)))
|
console.Println(colorBlue("AccessKey: ") + colorBold(fmt.Sprintf("%s ", cred.AccessKeyID)))
|
||||||
console.Println(colorBlue("SecretKey: ") + colorBold(fmt.Sprintf("%s ", cred.SecretAccessKey)))
|
console.Println(colorBlue("SecretKey: ") + colorBold(fmt.Sprintf("%s ", cred.SecretAccessKey)))
|
||||||
console.Println(colorBlue("Region: ") + colorBold(fmt.Sprintf(getFormatStr(len(region), 3), region)))
|
console.Println(colorBlue("Region: ") + colorBold(fmt.Sprintf(getFormatStr(len(region), 3), region)))
|
||||||
arnMsg := colorBlue("SqsARNs: ")
|
|
||||||
|
console.Println(colorBlue("\nBrowser Access:"))
|
||||||
|
console.Println(fmt.Sprintf(getFormatStr(len(endPointStr), 3), endPointStr))
|
||||||
|
}
|
||||||
|
|
||||||
|
// Prints bucket notification configurations.
|
||||||
|
func printEventNotifiers() {
|
||||||
|
if globalEventNotifier == nil {
|
||||||
|
// In case initEventNotifier() was not done or failed.
|
||||||
|
return
|
||||||
|
}
|
||||||
|
arnMsg := colorBlue("\nSQS ARNs: ")
|
||||||
|
if len(globalEventNotifier.queueTargets) == 0 {
|
||||||
|
arnMsg += colorBold(fmt.Sprintf(getFormatStr(len("<none>"), 2), "<none>"))
|
||||||
|
}
|
||||||
for queueArn := range globalEventNotifier.queueTargets {
|
for queueArn := range globalEventNotifier.queueTargets {
|
||||||
arnMsg += colorBold(fmt.Sprintf(getFormatStr(len(queueArn), 2), queueArn))
|
arnMsg += colorBold(fmt.Sprintf(getFormatStr(len(queueArn), 2), queueArn))
|
||||||
}
|
}
|
||||||
console.Println(arnMsg)
|
console.Println(arnMsg)
|
||||||
|
|
||||||
console.Println(colorBlue("\nBrowser Access:"))
|
|
||||||
console.Println(fmt.Sprintf(getFormatStr(len(endPointStr), 3), endPointStr))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prints startup message for command line access. Prints link to our documentation
|
// Prints startup message for command line access. Prints link to our documentation
|
||||||
|
Loading…
Reference in New Issue
Block a user