cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject [cxf] branch master updated: use LOG instead of printStackTrace
Date Tue, 04 Dec 2018 03:47:35 GMT
This is an automated email from the ASF dual-hosted git repository.

ffang 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 4ed46c6  use LOG instead of printStackTrace
4ed46c6 is described below

commit 4ed46c60081d278460dce2f25e492763ac04b2c3
Author: Freeman Fang <freeman.fang@gmail.com>
AuthorDate: Tue Dec 4 11:47:20 2018 +0800

    use LOG instead of printStackTrace
---
 .../undertow/WebSocketUndertowServletRequest.java        | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/rt/transports/websocket/src/main/java/org/apache/cxf/transport/websocket/undertow/WebSocketUndertowServletRequest.java
b/rt/transports/websocket/src/main/java/org/apache/cxf/transport/websocket/undertow/WebSocketUndertowServletRequest.java
index 15b4f1f..778462e 100644
--- a/rt/transports/websocket/src/main/java/org/apache/cxf/transport/websocket/undertow/WebSocketUndertowServletRequest.java
+++ b/rt/transports/websocket/src/main/java/org/apache/cxf/transport/websocket/undertow/WebSocketUndertowServletRequest.java
@@ -175,7 +175,7 @@ public class WebSocketUndertowServletRequest implements HttpServletRequest
{
         try {
             return new URL(channel.getUrl()).getHost();
         } catch (MalformedURLException e) {
-            e.printStackTrace();
+            LOG.log(Level.FINE, "getLocalAddr error", e);
             return null;
         }
     }
@@ -186,7 +186,7 @@ public class WebSocketUndertowServletRequest implements HttpServletRequest
{
         try {
             return new URL(channel.getUrl()).getHost();
         } catch (MalformedURLException e) {
-            e.printStackTrace();
+            LOG.log(Level.FINE, "getLocalName error", e);
             return null;
         }
     }
@@ -197,7 +197,7 @@ public class WebSocketUndertowServletRequest implements HttpServletRequest
{
         try {
             return new URL(channel.getUrl()).getPort();
         } catch (MalformedURLException e) {
-            e.printStackTrace();
+            LOG.log(Level.FINE, "getLocalPort error", e);
             return 0;
         }
     }
@@ -248,7 +248,7 @@ public class WebSocketUndertowServletRequest implements HttpServletRequest
{
         try {
             return new URL(channel.getUrl()).getProtocol();
         } catch (MalformedURLException e) {
-            e.printStackTrace();
+            LOG.log(Level.FINE, "getProtocol error", e);
             return null;
         }
     }
@@ -271,7 +271,7 @@ public class WebSocketUndertowServletRequest implements HttpServletRequest
{
         try {
             return new URL(channel.getPeerAddress().toString()).getHost();
         } catch (MalformedURLException e) {
-            e.printStackTrace();
+            LOG.log(Level.FINE, "getRemoteAddr error", e);
             return null;
         }
     }
@@ -282,7 +282,7 @@ public class WebSocketUndertowServletRequest implements HttpServletRequest
{
         try {
             return new URL(channel.getPeerAddress().toString()).getHost();
         } catch (MalformedURLException e) {
-            e.printStackTrace();
+            LOG.log(Level.FINE, "getRemoteHost error", e);
             return null;
         }
     }
@@ -293,7 +293,7 @@ public class WebSocketUndertowServletRequest implements HttpServletRequest
{
         try {
             return new URL(channel.getPeerAddress().toString()).getPort();
         } catch (MalformedURLException e) {
-            e.printStackTrace();
+            LOG.log(Level.FINE, "getRemotePort error", e);
             return 0;
         }
     }
@@ -310,7 +310,7 @@ public class WebSocketUndertowServletRequest implements HttpServletRequest
{
         try {
             return new URL(channel.getUrl()).getProtocol();
         } catch (MalformedURLException e) {
-            e.printStackTrace();
+            LOG.log(Level.FINE, "getScheme error", e);
             return null;
         }
     }


Mime
View raw message