refactor: routing info middleware (#37653)

fix #37650
This commit is contained in:
wxiaoguang authored and GitHub committed 2026-05-11 22:39:50 +08:00
1 parent 7621b65403
commit 2eb7b3c7da
5 files changed
+87 -95

No files matched your search

+1 -3
View File
@@ -34,9 +34,7 @@ func ProtocolMiddlewares() (handlers []any) {
handlers = append(handlers, ForwardedHeadersHandler(setting.ReverseProxyLimit, setting.ReverseProxyTrustedProxies))
}
if setting.IsRouteLogEnabled() {
handlers = append(handlers, routing.NewLoggerHandler())
}
handlers = append(handlers, routing.NewRequestInfoHandler())
if setting.IsAccessLogEnabled() {
handlers = append(handlers, context.AccessLogger())