作者 yangfu

router 日志

@@ -32,7 +32,7 @@ func init() { @@ -32,7 +32,7 @@ func init() {
32 } 32 }
33 filters.SecureKeyMap["token"] = "x-mmm-accesstoken" 33 filters.SecureKeyMap["token"] = "x-mmm-accesstoken"
34 web.InsertFilter("/*", web.BeforeRouter, filters.AllowCors()) 34 web.InsertFilter("/*", web.BeforeRouter, filters.AllowCors())
35 - web.InsertFilter("/*", web.BeforeExec, filters.CreateRequstLogFilter(log.Logger)) 35 + web.InsertFilter("/*", web.BeforeRouter, filters.CreateRequstLogFilter(log.Logger))
36 web.InsertFilter("/*", web.AfterExec, filters.CreateResponseLogFilter(log.Logger), web.WithReturnOnOutput(false)) 36 web.InsertFilter("/*", web.AfterExec, filters.CreateResponseLogFilter(log.Logger), web.WithReturnOnOutput(false))
37 web.InsertFilter("/v1/app11/*", web.BeforeExec, filters.SecureHandler( 37 web.InsertFilter("/v1/app11/*", web.BeforeExec, filters.SecureHandler(
38 filters.WithEnableCheckTimestamp(false), 38 filters.WithEnableCheckTimestamp(false),