Skip to content

Commit 340468c

Browse files
committed
Use toString for WebFilter checkpoint
Closes gh-34702
1 parent 19ce8c3 commit 340468c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spring-web/src/main/java/org/springframework/web/server/handler/DefaultWebFilterChain.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,8 @@ public Mono<Void> filter(ServerWebExchange exchange) {
107107
this.handler.handle(exchange));
108108
}
109109

110-
private Mono<Void> invokeFilter(WebFilter current, DefaultWebFilterChain chain, ServerWebExchange exchange) {
111-
String currentName = current.getClass().getName();
112-
return current.filter(exchange, chain).checkpoint(currentName + " [DefaultWebFilterChain]");
110+
private Mono<Void> invokeFilter(WebFilter filter, DefaultWebFilterChain chain, ServerWebExchange exchange) {
111+
return filter.filter(exchange, chain).checkpoint(filter.toString());
113112
}
114113

115114
}

0 commit comments

Comments
 (0)