mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 14:20:54 +00:00
add a line of comment
This commit is contained in:
parent
26cc040f9a
commit
387dd6ec0e
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user