Browse Source

HDFS-16357. Fix log format in DFSUtilClient (#3729). Contributed by guophilipse.

Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
GuoPhilipse 3 năm trước cách đây
mục cha
commit
2f55a6cced

+ 2 - 2
hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSUtilClient.java

@@ -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;
   }