mirror of https://github.com/milvus-io/milvus.git
Change default log output to stdout
Signed-off-by: sunby <bingyi.sun@zilliz.com>pull/4973/head^2
parent
3c72f09d63
commit
76480fcefe
|
@ -78,7 +78,7 @@ dataNode:
|
|||
log:
|
||||
level: debug
|
||||
file:
|
||||
rootPath: /tmp/milvus
|
||||
rootPath: ""
|
||||
maxSize: 300 # MB
|
||||
maxAge: 10 # day
|
||||
maxBackups: 20
|
||||
|
|
|
@ -311,5 +311,9 @@ func (p *ParamTable) initLogCfg() {
|
|||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
p.Log.File.Filename = path.Join(rootPath, "datanode-"+strconv.FormatInt(p.NodeID, 10)+".log")
|
||||
if len(rootPath) != 0 {
|
||||
p.Log.File.Filename = path.Join(rootPath, "datanode-"+strconv.FormatInt(p.NodeID, 10)+".log")
|
||||
} else {
|
||||
p.Log.File.Filename = ""
|
||||
}
|
||||
}
|
||||
|
|
|
@ -237,5 +237,9 @@ func (p *ParamTable) initLogCfg() {
|
|||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
p.Log.File.Filename = path.Join(rootPath, "dataservice-"+strconv.FormatInt(p.NodeID, 10)+".log")
|
||||
if len(rootPath) != 0 {
|
||||
p.Log.File.Filename = path.Join(rootPath, "dataservice-"+strconv.FormatInt(p.NodeID, 10)+".log")
|
||||
} else {
|
||||
p.Log.File.Filename = ""
|
||||
}
|
||||
}
|
||||
|
|
|
@ -203,5 +203,9 @@ func (p *ParamTable) initLogCfg() {
|
|||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
p.Log.File.Filename = path.Join(rootPath, fmt.Sprintf("masterservice-%d.log", p.NodeID))
|
||||
if len(rootPath) != 0 {
|
||||
p.Log.File.Filename = path.Join(rootPath, fmt.Sprintf("masterservice-%d.log", p.NodeID))
|
||||
} else {
|
||||
p.Log.File.Filename = ""
|
||||
}
|
||||
}
|
||||
|
|
|
@ -469,5 +469,9 @@ func (p *ParamTable) initLogCfg() {
|
|||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
p.Log.File.Filename = path.Join(rootPath, fmt.Sprintf("querynode-%d.log", p.QueryNodeID))
|
||||
if len(rootPath) != 0 {
|
||||
p.Log.File.Filename = path.Join(rootPath, fmt.Sprintf("querynode-%d.log", p.QueryNodeID))
|
||||
} else {
|
||||
p.Log.File.Filename = ""
|
||||
}
|
||||
}
|
||||
|
|
|
@ -92,7 +92,11 @@ func (p *ParamTable) initLogCfg() {
|
|||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
p.Log.File.Filename = path.Join(rootPath, fmt.Sprintf("queryService-%d.log", p.NodeID))
|
||||
if len(rootPath) != 0 {
|
||||
p.Log.File.Filename = path.Join(rootPath, fmt.Sprintf("queryService-%d.log", p.NodeID))
|
||||
} else {
|
||||
p.Log.File.Filename = ""
|
||||
}
|
||||
}
|
||||
|
||||
func (p *ParamTable) initStatsChannelName() {
|
||||
|
|
Loading…
Reference in New Issue