From 9d7e853ae8559e3c1a27919c52ac683e6ac74a50 Mon Sep 17 00:00:00 2001 From: YuriyZ Date: Thu, 2 Jan 2025 18:55:20 +0200 Subject: [PATCH] chore(jans-auth-server): log webapplicationexceptions for /authorize-challenge in TRACE logging level #10540 Signed-off-by: YuriyZ --- .../server/authorize/ws/rs/AuthorizationChallengeService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jans-auth-server/server/src/main/java/io/jans/as/server/authorize/ws/rs/AuthorizationChallengeService.java b/jans-auth-server/server/src/main/java/io/jans/as/server/authorize/ws/rs/AuthorizationChallengeService.java index ed9ca039a96..e6543f948e4 100644 --- a/jans-auth-server/server/src/main/java/io/jans/as/server/authorize/ws/rs/AuthorizationChallengeService.java +++ b/jans-auth-server/server/src/main/java/io/jans/as/server/authorize/ws/rs/AuthorizationChallengeService.java @@ -99,8 +99,8 @@ public Response requestAuthorization(AuthzRequest authzRequest) { try { return authorize(authzRequest); } catch (WebApplicationException e) { - if (log.isErrorEnabled() && AuthzRequestService.canLogWebApplicationException(e)) - log.error(e.getMessage(), e); + if (log.isTraceEnabled()) + log.trace(e.getMessage(), e); throw e; } catch (Exception e) { log.error(e.getMessage(), e);