Skip to content

Commit

Permalink
#1431: here is a StackOverflow bug? dubbo version 2.5.9, FailsafeLog…
Browse files Browse the repository at this point in the history
…ger.appendContextMessage() > NetUtils.getLocalAddress() (#1912)
  • Loading branch information
beiwei30 authored Jun 11, 2018
1 parent 0c6346f commit 70ec90d
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private static InetAddress getLocalAddress0() {
return localAddress;
}
} catch (Throwable e) {
logger.warn("Failed to retrieving ip address, " + e.getMessage(), e);
logger.warn(e);
}
try {
Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces();
Expand All @@ -207,19 +207,18 @@ private static InetAddress getLocalAddress0() {
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;
}

Expand Down

0 comments on commit 70ec90d

Please sign in to comment.