1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-26 12:00:50 +00:00

Merge pull request #2190 from szyhf/develop

fix to advice in #2187
This commit is contained in:
astaxie 2016-09-28 20:17:41 +08:00 committed by GitHub
commit 1090ca0154

View File

@ -294,6 +294,10 @@ func assignConfig(ac config.Configer) error {
}
if lo := ac.String("LogOutputs"); lo != "" {
// if lo is not nil or empty
// means user has set his own LogOutputs
// clear the default setting to BConfig.Log.Outputs
BConfig.Log.Outputs = make(map[string]string)
los := strings.Split(lo, ";")
for _, v := range los {
if logType2Config := strings.SplitN(v, ",", 2); len(logType2Config) == 2 {