Unverified Commit 91b9a65d authored by astaxie's avatar astaxie Committed by GitHub

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

When log maxSize set big int,FileWrite Init fail
parents e96a5fb3 2da894d4
......@@ -67,7 +67,10 @@ func (f *multiFileLogWriter) Init(config string) error {
jsonMap["level"] = i
bs, _ := json.Marshal(jsonMap)
writer = newFileWriter().(*fileLogWriter)
writer.Init(string(bs))
err := writer.Init(string(bs))
if err != nil {
return err
}
f.writers[i] = writer
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment