update log module

This commit is contained in:
fatedier 2017-04-21 00:02:21 +08:00
parent 5c75efa222
commit 1b70f0c4fd
2 changed files with 4 additions and 4 deletions

6
Godeps/Godeps.json generated
View File

@ -1,6 +1,6 @@
{ {
"ImportPath": "github.com/fatedier/frp", "ImportPath": "github.com/fatedier/frp",
"GoVersion": "go1.8", "GoVersion": "go1.6",
"GodepVersion": "v79", "GodepVersion": "v79",
"Packages": [ "Packages": [
"./..." "./..."
@ -18,8 +18,8 @@
}, },
{ {
"ImportPath": "github.com/fatedier/beego/logs", "ImportPath": "github.com/fatedier/beego/logs",
"Comment": "v1.7.2-70-gcd7a213", "Comment": "v1.7.2-71-gc12472d",
"Rev": "cd7a213b889b290cf450e1dd51398af12e5a10d4" "Rev": "c12472d5e4365d2927f5fba8e9260a3e3d51fa52"
}, },
{ {
"ImportPath": "github.com/golang/snappy", "ImportPath": "github.com/golang/snappy",

View File

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