HDFS-16357. Fix log format in DFSUtilClient (#3729). Contributed by guophilipse.
Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
This commit is contained in:
parent
cab7086fbc
commit
2f55a6cced
|
@ -733,13 +733,13 @@ public class DFSUtilClient {
|
|||
InetAddress addr = targetAddr.getAddress();
|
||||
Boolean cached = localAddrMap.get(addr.getHostAddress());
|
||||
if (cached != null) {
|
||||
LOG.trace("Address {} is {} local", targetAddr, (cached ? "" : "not"));
|
||||
LOG.trace("Address {} is{} local", targetAddr, (cached ? "" : " not"));
|
||||
return cached;
|
||||
}
|
||||
|
||||
boolean local = NetUtils.isLocalAddress(addr);
|
||||
|
||||
LOG.trace("Address {} is {} local", targetAddr, (local ? "" : "not"));
|
||||
LOG.trace("Address {} is{} local", targetAddr, (local ? "" : " not"));
|
||||
localAddrMap.put(addr.getHostAddress(), local);
|
||||
return local;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue