busbey commented on a change in pull request #913: HBASE-23381: Improve Logging 
in HBase Commons Package
URL: https://github.com/apache/hbase/pull/913#discussion_r356305512
 
 

 ##########
 File path: 
hbase-common/src/main/java/org/apache/hadoop/hbase/util/CommonFSUtils.java
 ##########
 @@ -806,10 +790,14 @@ private static void logFSTree(Logger LOG, final 
FileSystem fs, final Path root,
 
     for (FileStatus file : files) {
       if (file.isDirectory()) {
-        LOG.debug(prefix + file.getPath().getName() + "/");
+        if (LOG.isDebugEnabled()) {
 
 Review comment:
   it's a private method, do we actually need to pass in a LOG object?

----------------------------------------------------------------
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