You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2019/06/11 10:41:00 UTC
[cxf] branch master updated: Log stack trace
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/master by this push:
new e0692b4 Log stack trace
e0692b4 is described below
commit e0692b412843695b2c3d8a1f2c4633a2cd3aed78
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Tue Jun 11 11:40:47 2019 +0100
Log stack trace
---
.../java/org/apache/cxf/jaxrs/interceptor/JAXRSOutInterceptor.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSOutInterceptor.java b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSOutInterceptor.java
index 6c638f6..f59ccb5 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSOutInterceptor.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSOutInterceptor.java
@@ -229,6 +229,9 @@ public class JAXRSOutInterceptor extends AbstractOutDatabindingInterceptor {
}
responseMediaType = checkFinalContentType(responseMediaType, writers, checkWriters);
} catch (Throwable ex) {
+ if (LOG.isLoggable(Level.FINE)) {
+ LOG.log(Level.FINE, ex.getMessage(), ex);
+ }
handleWriteException(providerFactory, message, ex, firstTry);
return;
}