Permalink
Browse files

Merge pull request #1 from ox-it/logs

WL-2653 Add caught exception to the logs
  • Loading branch information...
2 parents b02c712 + 5adb2fb commit e04cbcf7cce41afe79cad1da5c02ebb7a8e6ca77 @buckett buckett committed Jan 23, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main/java/uk/ac/ox/oucs/sirlouie/LibraryAvailability.java
View
6 src/main/java/uk/ac/ox/oucs/sirlouie/LibraryAvailability.java
@@ -79,17 +79,17 @@ public Response get(
}
} catch (URISyntaxException e) {
- log.error("URISyntaxException ["+e.getLocalizedMessage()+"]");
+ log.error("URISyntaxException ["+e.getLocalizedMessage()+"]", e);
return Response.status(Status.INTERNAL_SERVER_ERROR)
.entity(e.getLocalizedMessage()).type("text/plain").build();
} catch (UnsupportedEncodingException e) {
- log.error("UnsupportedEncodingException ["+e.getLocalizedMessage()+"]");
+ log.error("UnsupportedEncodingException ["+e.getLocalizedMessage()+"]", e);
return Response.status(Status.INTERNAL_SERVER_ERROR)
.entity(e.getLocalizedMessage()).type("text/plain").build();
} catch (Exception e) {
- log.error("Exception ["+e.getLocalizedMessage()+"]");
+ log.error("Exception ["+e.getLocalizedMessage()+"]", e);
return Response.status(Status.INTERNAL_SERVER_ERROR)
.entity(e.getLocalizedMessage()).type("text/plain").build();

0 comments on commit e04cbcf

Please sign in to comment.