From 1102f34d1812e501a721214d8a7d7e7c04154f07 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Wed, 8 Mar 2017 17:51:49 +0100 Subject: [PATCH] [Minor] Don't log stack trace if certificate does not exist --- .../java/li/strolch/rest/endpoint/AuthenticationService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/li.strolch.rest/src/main/java/li/strolch/rest/endpoint/AuthenticationService.java b/li.strolch.rest/src/main/java/li/strolch/rest/endpoint/AuthenticationService.java index 1e8a78b39..6f0fc645a 100644 --- a/li.strolch.rest/src/main/java/li/strolch/rest/endpoint/AuthenticationService.java +++ b/li.strolch.rest/src/main/java/li/strolch/rest/endpoint/AuthenticationService.java @@ -233,7 +233,7 @@ public class AuthenticationService { return Response.ok().build(); } catch (StrolchException | PrivilegeException e) { - logger.error(e.getMessage(), e); + logger.error("Session validation failed: " + e.getMessage()); JsonObject root = new JsonObject(); root.addProperty("msg", MessageFormat.format("Session invalid: {0}", e.getMessage())); String json = new Gson().toJson(root);