1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 19:30:55 +00:00
This commit is contained in:
Jia Li Ong 2017-06-22 18:53:29 +08:00
commit 16b5a11484

View File

@ -278,10 +278,9 @@ func (w *fileLogWriter) doRotate(logTime time.Time) error {
if err != nil { if err != nil {
goto RESTART_LOGGER goto RESTART_LOGGER
} }
//err = os.Chmod(fName, os.FileMode(0444))
err = os.Chmod(fName, os.FileMode(otherPerm)) err = os.Chmod(fName, os.FileMode(otherPerm))
// re-start logger
RESTART_LOGGER: RESTART_LOGGER:
startLoggerErr := w.startLogger() startLoggerErr := w.startLogger()