1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 20:51:29 +00:00

add a line of comment

This commit is contained in:
JessonChan 2016-03-01 17:12:21 +08:00
parent 26cc040f9a
commit 387dd6ec0e

View File

@ -55,10 +55,10 @@ func (f *filesLogWriter) Init(config string) error {
f.fullLogWriter = writer
f.writers[LevelDebug+1] = writer
//unmarshal "separate" field to f.Separate
json.Unmarshal([]byte(config), f)
jsonMap := map[string]interface{}{}
json.Unmarshal([]byte(config), &jsonMap)
for i := LevelEmergency; i < LevelDebug+1; i++ {
@ -70,7 +70,6 @@ func (f *filesLogWriter) Init(config string) error {
writer = newFileWriter().(*fileLogWriter)
writer.Init(string(bs))
f.writers[i] = writer
fmt.Println(writer.Filename)
}
}
}