From 47afc47a239c48c090591d9fa561757e7749d96d Mon Sep 17 00:00:00 2001 From: YuriyZ Date: Mon, 7 Mar 2022 14:00:45 +0200 Subject: [PATCH] fix(jans-auth-server): reduce noise in logs when session can't be found https://github.com/GluuFederation/oxAuth/issues/1646 --- .../main/java/io/jans/as/server/service/SessionIdService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jans-auth-server/server/src/main/java/io/jans/as/server/service/SessionIdService.java b/jans-auth-server/server/src/main/java/io/jans/as/server/service/SessionIdService.java index dd1f7d72ad6..d4ef90b1213 100644 --- a/jans-auth-server/server/src/main/java/io/jans/as/server/service/SessionIdService.java +++ b/jans-auth-server/server/src/main/java/io/jans/as/server/service/SessionIdService.java @@ -801,7 +801,7 @@ public SessionId getSessionByDn(@Nullable String dn, boolean silently) { return sessionId; } catch (Exception e) { if (!silently) { - log.error("Failed to get session by dn: " + dn, e); + log.error("Failed to get session by dn: " + dn + ". " + e.getMessage()); } } return null;