adds metric middlware to route register

This commit is contained in:
bergquist authored and Carl Bergquist committed 2017-09-14 14:26:32 +02:00
1 parent 6372e22180
commit 4bc6ecb241
5 files changed
+10 -21

No files matched your search

-1
View File
@@ -170,7 +170,6 @@ func (hs *HttpServer) newMacaron() *macaron.Macaron {
m.Use(hs.metricsEndpoint)
m.Use(middleware.GetContextHandler())
m.Use(middleware.Sessioner(&setting.SessionOptions))
m.Use(middleware.RequestMetrics())
m.Use(middleware.OrgRedirect())
// needs to be after context handler