1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-15 23:17:19 +00:00

Prepare for support performance trace (#33286)

For #32973
This commit is contained in:
wxiaoguang
2025-01-16 04:05:18 +08:00
committed by GitHub
parent 6659a381ea
commit b15d01b0ce
6 changed files with 28 additions and 28 deletions

View File

@@ -213,7 +213,7 @@ func NormalRoutes() *web.Router {
}
r.NotFound(func(w http.ResponseWriter, req *http.Request) {
routing.UpdateFuncInfo(req.Context(), routing.GetFuncInfo(http.NotFound, "GlobalNotFound"))
defer routing.RecordFuncInfo(req.Context(), routing.GetFuncInfo(http.NotFound, "GlobalNotFound"))()
http.NotFound(w, req)
})
return r