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

Merge pull request #3109 from Jeff885/Jeff885-patch-1

When log maxSize set big int,FileWrite Init fail
This commit is contained in:
astaxie 2018-04-20 19:33:33 +08:00 committed by GitHub
commit 91b9a65db0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,10 @@ func (f *multiFileLogWriter) Init(config string) error {
jsonMap["level"] = i jsonMap["level"] = i
bs, _ := json.Marshal(jsonMap) bs, _ := json.Marshal(jsonMap)
writer = newFileWriter().(*fileLogWriter) writer = newFileWriter().(*fileLogWriter)
writer.Init(string(bs)) err := writer.Init(string(bs))
if err != nil {
return err
}
f.writers[i] = writer f.writers[i] = writer
} }
} }