Skip to content

Commit

Permalink
Improve logging in AuthenticationWebFilter
Browse files Browse the repository at this point in the history
Closes #14091
  • Loading branch information
ThomasHagelberg authored and jzheaux committed Mar 21, 2024
1 parent 0d71361 commit 091976f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2020 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -125,7 +125,7 @@ private Mono<Void> authenticate(ServerWebExchange exchange, WebFilterChain chain
.flatMap(
(authentication) -> onAuthenticationSuccess(authentication, new WebFilterExchange(exchange, chain)))
.doOnError(AuthenticationException.class,
(ex) -> logger.debug(LogMessage.format("Authentication failed: %s", ex.getMessage())));
(ex) -> logger.debug(LogMessage.format("Authentication failed: %s", ex.getMessage()), ex));
}

protected Mono<Void> onAuthenticationSuccess(Authentication authentication, WebFilterExchange webFilterExchange) {
Expand Down

0 comments on commit 091976f

Please sign in to comment.