1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-06 06:40:18 +00:00

fix: log mode 0440 should not be 440

This commit is contained in:
zjjott
2017-04-10 17:36:17 +08:00
committed by 朱涧江
parent 323a1c4214
commit 932019770d
2 changed files with 22 additions and 2 deletions

View File

@ -270,7 +270,7 @@ func (w *fileLogWriter) doRotate(logTime time.Time) error {
// Rename the file to its new found name
// even if occurs error,we MUST guarantee to restart new logger
err = os.Rename(w.Filename, fName)
err = os.Chmod(fName, os.FileMode(440))
err = os.Chmod(fName, os.FileMode(0440))
// re-start logger
RESTART_LOGGER: