You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by li...@apache.org on 2018/07/23 13:52:31 UTC
[incubator-dubbo] branch 2.6.x updated: #1431: here is a
StackOverflow bug? dubbo version 2.5.9,
FailsafeLogger.appendContextMessage() > NetUtils.getLocalAddress() (#1912)
This is an automated email from the ASF dual-hosted git repository.
liujun pushed a commit to branch 2.6.x
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.git
The following commit(s) were added to refs/heads/2.6.x by this push:
new 5e82a5e #1431: here is a StackOverflow bug? dubbo version 2.5.9, FailsafeLogger.appendContextMessage() > NetUtils.getLocalAddress() (#1912)
5e82a5e is described below
commit 5e82a5eef6e526c156f36f656afdba13bda8a2a4
Author: Ian Luo <ia...@gmail.com>
AuthorDate: Mon Jun 11 13:50:51 2018 +0800
#1431: here is a StackOverflow bug? dubbo version 2.5.9, FailsafeLogger.appendContextMessage() > NetUtils.getLocalAddress() (#1912)
---
.../src/main/java/com/alibaba/dubbo/common/utils/NetUtils.java | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/dubbo-common/src/main/java/com/alibaba/dubbo/common/utils/NetUtils.java b/dubbo-common/src/main/java/com/alibaba/dubbo/common/utils/NetUtils.java
index 59edd48..44ca3bc 100644
--- a/dubbo-common/src/main/java/com/alibaba/dubbo/common/utils/NetUtils.java
+++ b/dubbo-common/src/main/java/com/alibaba/dubbo/common/utils/NetUtils.java
@@ -190,7 +190,7 @@ public class NetUtils {
return localAddress;
}
} catch (Throwable e) {
- logger.warn("Failed to retrieving ip address, " + e.getMessage(), e);
+ logger.warn(e);
}
try {
Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces();
@@ -207,19 +207,18 @@ public class NetUtils {
return address;
}
} catch (Throwable e) {
- logger.warn("Failed to retrieving ip address, " + e.getMessage(), e);
+ logger.warn(e);
}
}
}
} catch (Throwable e) {
- logger.warn("Failed to retrieving ip address, " + e.getMessage(), e);
+ logger.warn(e);
}
}
}
} catch (Throwable e) {
- logger.warn("Failed to retrieving ip address, " + e.getMessage(), e);
+ logger.warn(e);
}
- logger.error("Could not get local host ip address, will use 127.0.0.1 instead.");
return localAddress;
}