作者 tangxvhui

更新

@@ -8,6 +8,7 @@ import ( @@ -8,6 +8,7 @@ import (
8 8
9 "github.com/beego/beego/v2/server/web" 9 "github.com/beego/beego/v2/server/web"
10 "github.com/linmadan/egglib-go/web/beego/filters" 10 "github.com/linmadan/egglib-go/web/beego/filters"
  11 + "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/log"
11 _ "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/port/beego/routers" 12 _ "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/port/beego/routers"
12 ) 13 )
13 14
@@ -41,4 +42,6 @@ func init() { @@ -41,4 +42,6 @@ func init() {
41 time.Local = timeLocal 42 time.Local = timeLocal
42 43
43 web.InsertFilter("/*", web.BeforeRouter, filters.AllowCors()) 44 web.InsertFilter("/*", web.BeforeRouter, filters.AllowCors())
  45 + web.InsertFilter("/*", web.BeforeExec, filters.CreateRequstLogFilter(log.Logger))
  46 +
44 } 47 }