Browse Source

update log module

pull/316/head
fatedier 8 years ago
parent
commit
1b70f0c4fd
  1. 6
      Godeps/Godeps.json
  2. 2
      vendor/github.com/fatedier/beego/logs/file.go

6
Godeps/Godeps.json generated vendored

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

2
vendor/github.com/fatedier/beego/logs/file.go generated vendored

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

Loading…
Cancel
Save