[Minor] Don't log stack trace if certificate does not exist

This commit is contained in:
Robert von Burg 2017-03-08 17:51:49 +01:00
parent 8310dc1a44
commit 1102f34d18
1 changed files with 1 additions and 1 deletions

View File

@ -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);