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

Merge pull request #2556 from zjjott/master

fix: log mode should be 0440 should not be 440
This commit is contained in:
astaxie
2017-04-10 21:14:34 +08:00
committed by GitHub
2 changed files with 22 additions and 2 deletions

View File

@ -268,7 +268,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: