Skip to content
Snippets Groups Projects
Commit c7be01fe authored by Thorsten Vitt's avatar Thorsten Vitt
Browse files

Let's log exceptions

parent d9814937
No related merge requests found
...@@ -81,7 +81,7 @@ public Response toResponse(final Exception exception) { ...@@ -81,7 +81,7 @@ public Response toResponse(final Exception exception) {
.htmlEscapeHex(Throwables.getStackTraceAsString(exception)))); .htmlEscapeHex(Throwables.getStackTraceAsString(exception))));
logger.log(Level.WARNING, MessageFormat.format( logger.log(Level.WARNING, MessageFormat.format(
"Caught {0}: {1}, returned {2} {3}", exception.getClass() "{2} {3} returned: caught {0}: {1}", exception.getClass()
.getSimpleName(), exception.getMessage(), status .getSimpleName(), exception.getMessage(), status
.getStatusCode(), status.getReasonPhrase()), exception); .getStatusCode(), status.getReasonPhrase()), exception);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment