Skip to content

Commit

Permalink
SAMZA-1022 - convert warn() to debug() for 'hostname .. resolves to a…
Browse files Browse the repository at this point in the history
… loopback address'
  • Loading branch information
sborya authored and Navina Ramesh committed Sep 21, 2016
1 parent d0422de commit 49dac97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samza-core/src/main/scala/org/apache/samza/util/Util.scala
Expand Up @@ -330,7 +330,7 @@ object Util extends Logging {
def getLocalHost: InetAddress = {
val localHost = InetAddress.getLocalHost
if (localHost.isLoopbackAddress) {
warn("Hostname %s resolves to a loopback address, trying to resolve an external IP address.".format(localHost.getHostName))
debug("Hostname %s resolves to a loopback address, trying to resolve an external IP address.".format(localHost.getHostName))
val networkInterfaces = if (System.getProperty("os.name").startsWith("Windows")) NetworkInterface.getNetworkInterfaces.toList else NetworkInterface.getNetworkInterfaces.toList.reverse
for (networkInterface <- networkInterfaces) {
val addresses = networkInterface.getInetAddresses.toList.filterNot(address => address.isLinkLocalAddress || address.isLoopbackAddress)
Expand Down

0 comments on commit 49dac97

Please sign in to comment.