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_r355210792
 
 

 ##########
 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:
   Does all of logFSTree only log at debug? Can we just do this guard for the 
whole method contents and skip the traversal?

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