remove the method with the same function but the different name in NetUtils (#1572)

This commit is contained in:
时无两丶 2018-04-09 19:33:32 +08:00 committed by Ian Luo
parent 497803c836
commit 9f48d8dbdd
2 changed files with 1 additions and 6 deletions

View File

@ -37,7 +37,7 @@ public class FailsafeLogger implements Logger {
}
private String appendContextMessage(String msg) {
return " [DUBBO] " + msg + ", dubbo version: " + Version.getVersion() + ", current host: " + NetUtils.getLogHost();
return " [DUBBO] " + msg + ", dubbo version: " + Version.getVersion() + ", current host: " + NetUtils.getLocalHost();
}
public void trace(String msg, Throwable e) {

View File

@ -182,11 +182,6 @@ public class NetUtils {
return localAddress;
}
public static String getLogHost() {
InetAddress address = getLocalAddress();
return address == null ? LOCALHOST : address.getHostAddress();
}
private static InetAddress getLocalAddress0() {
InetAddress localAddress = null;
try {