mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-08 15:32:14 +08:00
fix bug: component check
This commit is contained in:
parent
58349c3639
commit
26ca49cab6
@ -102,6 +102,7 @@ func main() {
|
|||||||
err = check.function(check.config)
|
err = check.function(check.config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
allSuccess = false
|
allSuccess = false
|
||||||
|
component.ErrorPrint(fmt.Sprintf("Check component: %s, failed: %s", check.name, errs.Unwrap(err).Error()))
|
||||||
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) ||
|
||||||
@ -110,7 +111,6 @@ func main() {
|
|||||||
checks[index].flag = true
|
checks[index].flag = true
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
component.ErrorPrint(fmt.Sprintf("Check component: %s, failed: %+v", check.name, err))
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user