Add route handler info for debugging purpose (#30705)

Follow #30519
This commit is contained in:
wxiaoguang authored and GitHub committed 2024-04-26 09:09:49 +00:00
1 parent 68a3e6b5e6
commit 1e749b80d7
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -1612,7 +1612,7 @@ func registerRoutes(m *web.Route) {
m.NotFound(func(w http.ResponseWriter, req *http.Request) {
ctx := context.GetWebContext(req)
routing.UpdateFuncInfo(ctx, routing.GetFuncInfo(ctx.NotFound, "GlobalNotFound"))
routing.UpdateFuncInfo(ctx, routing.GetFuncInfo(ctx.NotFound, "WebNotFound"))
ctx.NotFound("", nil)
})
}