Commit 164366ae authored by JessonChan's avatar JessonChan

return error

parent 2b9d7ff7
......@@ -185,9 +185,10 @@ func (w *fileLogWriter) WriteMsg(msg string, level int) error {
buf[17] = byte('0' + t)
buf[18] = byte('0' + s - t*10)
msg = string(buf[0:]) + msg + "\n"
w.doCheck(len(msg))
w.fd.Write([]byte(msg))
return nil
_, err := w.fd.Write([]byte(msg))
return err
}
func (w *fileLogWriter) createLogFile() (*os.File, error) {
......
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