1. change pprof module
2. remove memory log
3. remove line hook log
4. send line log to es
This commit is contained in:
root committed 2018-10-12 16:15:47 +08:00
1 parent a6b8c9ef8a
commit 08ae3289ee
12 files changed
+232 -171

No files matched your search

+2 -2
View File
@@ -12,8 +12,8 @@ import (
"git.trj.tw/golang/mtfosbot/router/private"
"git.trj.tw/golang/mtfosbot/router/rimg"
"git.trj.tw/golang/mtfosbot/router/twitch"
"github.com/DeanThompson/ginpprof"
"github.com/gin-contrib/cors"
"github.com/gin-contrib/pprof"
"github.com/gin-gonic/contrib/sessions"
"github.com/gin-gonic/gin"
)
@@ -105,5 +105,5 @@ func SetRoutes(r *gin.Engine) {
}
// set pprof router
pprof.Register(r, nil)
ginpprof.Wrap(r)
}