Skip to content

Commit 1cd4ffe

Browse files
amergeyjzheaux
authored andcommitted
fix typo preventing full exception to be displayed in log
closes gh-9901
1 parent 1d48f31 commit 1cd4ffe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/web/OAuth2AuthorizationRequestRedirectFilter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -221,7 +221,7 @@ private void sendRedirectForAuthorization(HttpServletRequest request, HttpServle
221221

222222
private void unsuccessfulRedirectForAuthorization(HttpServletRequest request, HttpServletResponse response,
223223
Exception ex) throws IOException {
224-
this.logger.error(LogMessage.format("Authorization Request failed: %s", ex, ex));
224+
this.logger.error(LogMessage.format("Authorization Request failed: %s", ex), ex);
225225
response.sendError(HttpStatus.INTERNAL_SERVER_ERROR.value(),
226226
HttpStatus.INTERNAL_SERVER_ERROR.getReasonPhrase());
227227
}

0 commit comments

Comments
 (0)