refactor: routing info middleware (#37653)

fix #37650
This commit is contained in:
wxiaoguang
2026-05-11 22:39:50 +08:00
committed by GitHub
parent 7621b65403
commit 2eb7b3c7da
5 changed files with 87 additions and 95 deletions
+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())