mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 19:30:55 +00:00
Merge branch 'master' of https://github.com/jialijelly/beego
This commit is contained in:
commit
16b5a11484
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user