Author: hasan
Date: Wed Dec 21 21:10:38 2011
New Revision: 1221886
URL: http://svn.apache.org/viewvc?rev=1221886&view=rev
Log:
CLEREZZA-662: logged exceptions handled in handleException in JaxRsHandler at
info level instead of debug level
Modified:
incubator/clerezza/trunk/parent/triaxrs/triaxrs/src/main/java/org/apache/clerezza/triaxrs/JaxRsHandler.java
Modified:
incubator/clerezza/trunk/parent/triaxrs/triaxrs/src/main/java/org/apache/clerezza/triaxrs/JaxRsHandler.java
URL:
http://svn.apache.org/viewvc/incubator/clerezza/trunk/parent/triaxrs/triaxrs/src/main/java/org/apache/clerezza/triaxrs/JaxRsHandler.java?rev=1221886&r1=1221885&r2=1221886&view=diff
==============================================================================
---
incubator/clerezza/trunk/parent/triaxrs/triaxrs/src/main/java/org/apache/clerezza/triaxrs/JaxRsHandler.java
(original)
+++
incubator/clerezza/trunk/parent/triaxrs/triaxrs/src/main/java/org/apache/clerezza/triaxrs/JaxRsHandler.java
Wed Dec 21 21:10:38 2011
@@ -540,7 +540,7 @@ public class JaxRsHandler implements Han
static void handleException(Throwable exception, WebRequest request,
Response response) throws HandlerException, RuntimeException {
if (exception instanceof WebApplicationException) {
WebApplicationException webEx =
(WebApplicationException) exception;
- logger.debug("Exception {}", webEx);
+ logger.info("Exception {}", webEx);
javax.ws.rs.core.Response jaxResponse =
webEx.getResponse();
if ((jaxResponse == null) || (jaxResponse.getEntity()
== null)) {
ExceptionMapper<WebApplicationException>
exMapper = (ExceptionMapper<WebApplicationException>) providers
@@ -559,7 +559,7 @@ public class JaxRsHandler implements Han
}
ExceptionMapper exMapper =
providers.getExceptionMapper(exception.getClass());
if (exMapper != null) {
- logger.debug("Exception with exception mapper",
exception);
+ logger.info("Exception with exception mapper",
exception);
javax.ws.rs.core.Response jaxResponse;
try {
jaxResponse = exMapper.toResponse(exception);
@@ -584,7 +584,7 @@ public class JaxRsHandler implements Han
if (!(exception instanceof
AccessControlException)) {
logger.warn("RuntimeException (with no
exception mapper)", exception);
} else {
- logger.debug("AccessControlException
(will rethrow)", exception);
+ logger.info("AccessControlException
(will rethrow)", exception);
}
throw (RuntimeException) exception;
}