1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 20:10:56 +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 {
goto RESTART_LOGGER
}
//err = os.Chmod(fName, os.FileMode(0444))
err = os.Chmod(fName, os.FileMode(otherPerm))
// re-start logger
RESTART_LOGGER:
startLoggerErr := w.startLogger()