yanghua commented on a change in pull request #1161: [HUDI-457]Redo hudi-common 
log statements using SLF4J
URL: https://github.com/apache/incubator-hudi/pull/1161#discussion_r362363473
 
 

 ##########
 File path: 
hudi-common/src/main/java/org/apache/hudi/common/util/collection/DiskBasedMap.java
 ##########
 @@ -111,9 +111,8 @@ private void initFile(File writeOnlyFile) throws 
IOException {
       writeOnlyFile.getParentFile().mkdir();
     }
     writeOnlyFile.createNewFile();
-    LOG.info("Spilling to file location " + writeOnlyFile.getAbsolutePath() + 
" in host ("
-        + InetAddress.getLocalHost().getHostAddress() + ") with hostname (" + 
InetAddress.getLocalHost().getHostName()
-        + ")");
+    LOG.info("Spilling to file location {} in host ({}) with hostname ({})", 
writeOnlyFile.getAbsolutePath(),
+            InetAddress.getLocalHost().getHostAddress(), 
InetAddress.getLocalHost().getHostName());
 
 Review comment:
   ditto about indent

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to