extrace log config
This commit is contained in:
parent
f840ffdc48
commit
c4172debf5
|
@ -21,6 +21,10 @@ func LoadConfigs(configDir string, configPtr interface{}) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, fpath := range files {
|
for _, fpath := range files {
|
||||||
|
// logs.toml 单独解析
|
||||||
|
if fpath == "logs.toml" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if strings.HasSuffix(fpath, "toml") {
|
if strings.HasSuffix(fpath, "toml") {
|
||||||
loaders = append(loaders, &multiconfig.TOMLLoader{Path: path.Join(configDir, fpath)})
|
loaders = append(loaders, &multiconfig.TOMLLoader{Path: path.Join(configDir, fpath)})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue