cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Removing some of console printStackTrace calls
Date Mon, 12 Jan 2015 17:21:41 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes 0602611e5 -> b184d09ea


Removing some of console printStackTrace calls


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/b184d09e
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/b184d09e
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/b184d09e

Branch: refs/heads/2.7.x-fixes
Commit: b184d09ea8211cdfadc5b67198a5fbfedc952f10
Parents: 0602611
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Mon Jan 12 17:18:28 2015 +0000
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Mon Jan 12 17:21:21 2015 +0000

----------------------------------------------------------------------
 .../java/org/apache/cxf/jaxrs/provider/JAXBElementProvider.java    | 2 +-
 .../org/apache/cxf/jaxrs/provider/RequestDispatcherProvider.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/b184d09e/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/JAXBElementProvider.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/JAXBElementProvider.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/JAXBElementProvider.java
index 6aa395d..4c4d349 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/JAXBElementProvider.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/JAXBElementProvider.java
@@ -305,7 +305,7 @@ public class JAXBElementProvider<T> extends AbstractJAXBProvider<T>
 {
         }  catch (WebApplicationException e) {
             throw e;
         } catch (Exception e) {
-            e.printStackTrace();
+            LOG.warning(ExceptionUtils.getStackTrace(e));
             throw ExceptionUtils.toInternalServerErrorException(e, null);        
         }
     }

http://git-wip-us.apache.org/repos/asf/cxf/blob/b184d09e/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/RequestDispatcherProvider.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/RequestDispatcherProvider.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/RequestDispatcherProvider.java
index 7282005..c523da3 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/RequestDispatcherProvider.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/RequestDispatcherProvider.java
@@ -213,7 +213,7 @@ public class RequestDispatcherProvider extends AbstractConfigurableProvider
             }
         } catch (Throwable ex) {
             mc.put(AbstractHTTPDestination.REQUEST_REDIRECTED, Boolean.FALSE);
-            ex.printStackTrace();
+            LOG.warning(ExceptionUtils.getStackTrace(ex));
             throw ExceptionUtils.toInternalServerErrorException(ex, null); 
         }
     }


Mime
View raw message