未验证 提交 58598993 编写于 作者: X Xiaofan 提交者: GitHub

Revert the logger change (#8677)

Signed-off-by: Nxiaofan-luan <xiaofan.luan@zilliz.com>
上级 d0b75bd6
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册