Merge branch 'release-v3.6' into delete-log-3.6

pull/2050/head
skiffer-git 2 years ago committed by GitHub
commit db50e87eb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -101,7 +101,13 @@ function openim::tools::start_service() {
cmd="${cmd} --prometheus_port ${prometheus_port}" cmd="${cmd} --prometheus_port ${prometheus_port}"
fi fi
openim::log::status "Starting binary ${binary_name}..." openim::log::status "Starting binary ${binary_name}..."
${cmd} ${cmd}
local status=$? local status=$?
if [ $status -eq 0 ]; then if [ $status -eq 0 ]; then

@ -103,6 +103,7 @@ func main() {
if !check.flag { if !check.flag {
err = check.function(check.config) err = check.function(check.config)
if err != nil { if err != nil {
if check.name == "Minio" { if check.name == "Minio" {
if errors.Is(err, errMinioNotEnabled) { if errors.Is(err, errMinioNotEnabled) {
fmt.Println(err.Error(), " check ", check.name) fmt.Println(err.Error(), " check ", check.name)
@ -114,6 +115,7 @@ func main() {
} }
} }
component.ErrorPrint(fmt.Sprintf("Starting %s failed:%v.", check.name, errs.Unwrap(err).Error())) component.ErrorPrint(fmt.Sprintf("Starting %s failed:%v.", check.name, errs.Unwrap(err).Error()))
if strings.Contains(errs.Unwrap(err).Error(), "connection refused") || if strings.Contains(errs.Unwrap(err).Error(), "connection refused") ||
strings.Contains(errs.Unwrap(err).Error(), "timeout") || strings.Contains(errs.Unwrap(err).Error(), "timeout") ||

Loading…
Cancel
Save