You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by ch...@apache.org on 2022/10/16 15:07:39 UTC
[incubator-eventmesh] branch master updated: [#1533] | [Enhancement] Method prints the stack trace to the console
This is an automated email from the ASF dual-hosted git repository.
chenguangsheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git
The following commit(s) were added to refs/heads/master by this push:
new bf0fdb71 [#1533] | [Enhancement] Method prints the stack trace to the console
new d267257e Merge pull request #1616 from karthiknatarajan-27558/master
bf0fdb71 is described below
commit bf0fdb712b362deb74098a36d3751e1ae3bf7166
Author: Karthik Natarajan <ka...@thoughtworks.com>
AuthorDate: Sun Oct 16 15:17:59 2022 +0530
[#1533] | [Enhancement] Method prints the stack trace to the console
---
.../src/main/java/org/apache/eventmesh/common/utils/IPUtils.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eventmesh-common/src/main/java/org/apache/eventmesh/common/utils/IPUtils.java b/eventmesh-common/src/main/java/org/apache/eventmesh/common/utils/IPUtils.java
index 2ee98dae..a35981d0 100644
--- a/eventmesh-common/src/main/java/org/apache/eventmesh/common/utils/IPUtils.java
+++ b/eventmesh-common/src/main/java/org/apache/eventmesh/common/utils/IPUtils.java
@@ -111,9 +111,9 @@ public class IPUtils {
final InetAddress localHost = InetAddress.getLocalHost();
return normalizeHostAddress(localHost);
} catch (SocketException e) {
- e.printStackTrace();
+ logger.error(e.getMessage());
} catch (UnknownHostException e) {
- e.printStackTrace();
+ logger.error(e.getMessage());
}
return null;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org