mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Change fmt print to log print (#8308)
Signed-off-by: sunby <bingyi.sun@zilliz.com>
This commit is contained in:
parent
6c1c0d826b
commit
d5e674cb5c
@ -23,9 +23,9 @@ import (
|
||||
"syscall"
|
||||
|
||||
"github.com/milvus-io/milvus/internal/util/healthz"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"github.com/milvus-io/milvus/internal/util/metricsinfo"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"github.com/milvus-io/milvus/cmd/components"
|
||||
"github.com/milvus-io/milvus/internal/datacoord"
|
||||
@ -369,7 +369,7 @@ func (mr *MilvusRoles) Run(localMsg bool, alias string) {
|
||||
} else {
|
||||
err := os.Setenv(metricsinfo.DeployModeEnvKey, metricsinfo.ClusterDeployMode)
|
||||
if err != nil {
|
||||
fmt.Println("failed to set deploy mode: ", err)
|
||||
log.Error("failed to set deploy mode: ", zap.Error(err))
|
||||
}
|
||||
}
|
||||
|
||||
@ -487,7 +487,7 @@ func (mr *MilvusRoles) Run(localMsg bool, alias string) {
|
||||
syscall.SIGTERM,
|
||||
syscall.SIGQUIT)
|
||||
sig := <-sc
|
||||
fmt.Printf("Get %s signal to exit\n", sig.String())
|
||||
log.Error("Get signal to exit\n", zap.String("signal", sig.String()))
|
||||
|
||||
// some deferred Stop has race with context cancel
|
||||
cancel()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user