mirror of https://github.com/milvus-io/milvus.git
Revert the logger change (#8677)
Signed-off-by: xiaofan-luan <xiaofan.luan@zilliz.com>pull/8680/head
parent
d0b75bd68f
commit
585989935a
internal
datanode
indexnode
querycoord
querynode
|
@ -157,7 +157,8 @@ func (node *DataNode) Register() error {
|
|||
go node.StartWatchChannels(node.ctx)
|
||||
|
||||
Params.initMsgChannelSubName()
|
||||
Params.initLogCfg()
|
||||
//TODO reset
|
||||
//Params.initLogCfg()
|
||||
log.Debug("DataNode Init",
|
||||
zap.String("MsgChannelSubName", Params.MsgChannelSubName),
|
||||
)
|
||||
|
|
|
@ -126,6 +126,8 @@ func (p *ParamTable) Init() {
|
|||
p.initMinioSecretAccessKey()
|
||||
p.initMinioUseSSL()
|
||||
p.initMinioBucketName()
|
||||
|
||||
p.initLogCfg()
|
||||
}
|
||||
|
||||
// ==== DataNode internal components configs ====
|
||||
|
|
|
@ -106,7 +106,8 @@ func (i *IndexNode) Register() error {
|
|||
}
|
||||
i.liveCh = i.session.Init(typeutil.IndexNodeRole, Params.IP+":"+strconv.Itoa(Params.Port), false)
|
||||
Params.NodeID = i.session.ServerID
|
||||
Params.initLogCfg()
|
||||
//TODO reset logger
|
||||
//Params.initLogCfg()
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
@ -92,6 +92,7 @@ func (pt *ParamTable) initParams() {
|
|||
pt.initEtcdEndpoints()
|
||||
pt.initMetaRootPath()
|
||||
pt.initIndexRootPath()
|
||||
pt.initLogCfg()
|
||||
}
|
||||
|
||||
func (pt *ParamTable) initMinIOAddress() {
|
||||
|
|
|
@ -107,6 +107,8 @@ func (pt *ParamTable) Init() {
|
|||
pt.initRoleName()
|
||||
|
||||
pt.initMaxTaskNum()
|
||||
|
||||
Params.initLogCfg()
|
||||
}
|
||||
|
||||
func (pt *ParamTable) InitAlias(alias string) {
|
||||
|
|
|
@ -100,7 +100,8 @@ func (node *Proxy) Register() error {
|
|||
node.session.Init(typeutil.ProxyRole, Params.NetworkAddress, false)
|
||||
Params.ProxyID = node.session.ServerID
|
||||
Params.initProxySubName()
|
||||
Params.initLogCfg()
|
||||
// TODO Reset the logger
|
||||
//Params.initLogCfg()
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ func (p *ParamTable) Init() {
|
|||
panic(err)
|
||||
}
|
||||
|
||||
p.BaseTable.InitLogCfg("queryCoord", 0)
|
||||
p.initLogCfg()
|
||||
|
||||
p.initQueryCoordAddress()
|
||||
p.initRoleName()
|
||||
|
@ -237,3 +237,7 @@ func (p *ParamTable) initMinioBucketName() {
|
|||
}
|
||||
p.MinioBucketName = bucketName
|
||||
}
|
||||
|
||||
func (p *ParamTable) initLogCfg() {
|
||||
p.InitLogCfg("querycoord", 0)
|
||||
}
|
||||
|
|
|
@ -126,6 +126,8 @@ func (p *ParamTable) Init() {
|
|||
|
||||
p.initSegcoreChunkRows()
|
||||
p.initKnowhereSimdType()
|
||||
|
||||
p.initLogCfg()
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------- minio
|
||||
|
|
|
@ -109,7 +109,8 @@ func (node *QueryNode) Register() error {
|
|||
|
||||
// This param needs valid QueryNodeID
|
||||
Params.initMsgChannelSubName()
|
||||
Params.initLogCfg()
|
||||
//TODO Reset the logger
|
||||
//Params.initLogCfg()
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue