remove the method with the same function but the different name in NetUtils (#1572)
This commit is contained in:
parent
497803c836
commit
9f48d8dbdd
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue