[Minor] Don't log stack trace if certificate does not exist
This commit is contained in:
parent
8310dc1a44
commit
1102f34d18
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue