|
|
@ -90,8 +90,6 @@ func main() {
|
|
|
|
for _, check := range checks {
|
|
|
|
for _, check := range checks {
|
|
|
|
if !check.flag {
|
|
|
|
if !check.flag {
|
|
|
|
err = check.function()
|
|
|
|
err = check.function()
|
|
|
|
continue
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
component.ErrorPrint(fmt.Sprintf("Starting %s failed:%v.", check.name, err))
|
|
|
|
component.ErrorPrint(fmt.Sprintf("Starting %s failed:%v.", check.name, err))
|
|
|
|
allSuccess = false
|
|
|
|
allSuccess = false
|
|
|
@ -100,6 +98,7 @@ func main() {
|
|
|
|
component.SuccessPrint(fmt.Sprintf("%s connected successfully", check.name))
|
|
|
|
component.SuccessPrint(fmt.Sprintf("%s connected successfully", check.name))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if allSuccess {
|
|
|
|
if allSuccess {
|
|
|
|
component.SuccessPrint("All components started successfully!")
|
|
|
|
component.SuccessPrint("All components started successfully!")
|
|
|
|