mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 10:59:32 +08:00
Direct singlenode log to file
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
This commit is contained in:
parent
ed32dfd1ae
commit
39ac47d16c
@ -31,13 +31,13 @@ func initLogCfg() log.Config {
|
||||
logCfg.File.MaxDays = 10
|
||||
|
||||
// FIXME(wxyu): Load from config files
|
||||
logCfg.File.Filename = ""
|
||||
//ciFileDir := "/milvus-distributed/logs/"
|
||||
//if _, err := os.Stat(ciFileDir); err == nil {
|
||||
// logCfg.File.Filename = ciFileDir + "singlenode.log"
|
||||
//} else {
|
||||
// logCfg.File.Filename = "/tmp/milvus/singlenode.log"
|
||||
//}
|
||||
//logCfg.File.Filename = ""
|
||||
ciFileDir := "/milvus-distributed/logs/"
|
||||
if _, err := os.Stat(ciFileDir); err == nil {
|
||||
logCfg.File.Filename = ciFileDir + "singlenode.log"
|
||||
} else {
|
||||
logCfg.File.Filename = "/tmp/milvus/singlenode.log"
|
||||
}
|
||||
return logCfg
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user