mirror of
https://gitee.com/IrisVega/frp.git
synced 2024-11-01 22:31:29 +08:00
update log module
This commit is contained in:
parent
5c75efa222
commit
1b70f0c4fd
6
Godeps/Godeps.json
generated
6
Godeps/Godeps.json
generated
@ -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",
|
||||||
|
2
vendor/github.com/fatedier/beego/logs/file.go
generated
vendored
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
|
// 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:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user