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:18:48 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 3cefd6f30 -> a093258ef


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/a093258e
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/a093258e
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/a093258e

Branch: refs/heads/master
Commit: a093258efd10d5c64de7f922ade0974e1904f027
Parents: 3cefd6f
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:18:28 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/a093258e/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 723ea0b..f17c93b 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
@@ -322,7 +322,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/a093258e/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