mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-06 21:32:15 +08:00
fix bug: component check
This commit is contained in:
parent
a9c4c4c565
commit
28da7f6947
@ -101,17 +101,15 @@ func main() {
|
|||||||
if !check.flag {
|
if !check.flag {
|
||||||
err = check.function(check.config)
|
err = check.function(check.config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
allSuccess = false
|
||||||
if check.name == "Minio" {
|
if check.name == "Minio" {
|
||||||
if errors.Is(err, errMinioNotEnabled) ||
|
if errors.Is(err, errMinioNotEnabled) ||
|
||||||
errors.Is(err, errSignEndPoint) ||
|
errors.Is(err, errSignEndPoint) ||
|
||||||
errors.Is(err, errApiURL) {
|
errors.Is(err, errApiURL) {
|
||||||
fmt.Fprintf(os.Stderr, err.Error(), " check ", check.name)
|
fmt.Fprintf(os.Stderr, err.Error(), " check ", check.name)
|
||||||
checks[index].flag = true
|
checks[index].flag = true
|
||||||
allSuccess = false
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
allSuccess = false
|
|
||||||
component.ErrorPrint(fmt.Sprintf("Check component: %s, failed: %+v", check.name, err))
|
component.ErrorPrint(fmt.Sprintf("Check component: %s, failed: %+v", check.name, err))
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user