diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/CleanerChore.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/CleanerChore.java index ea18193fee8..f073d306939 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/CleanerChore.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/CleanerChore.java @@ -263,9 +263,13 @@ public abstract class CleanerChore extends Schedu try { POOL.latchCountUp(); if (runCleaner()) { - LOG.debug("Cleaned all WALs under " + oldFileDir); + if (LOG.isTraceEnabled()) { + LOG.trace("Cleaned all WALs under " + oldFileDir); + } } else { - LOG.warn("WALs outstanding under " + oldFileDir); + if (LOG.isTraceEnabled()) { + LOG.trace("WALs outstanding under " + oldFileDir); + } } } finally { POOL.latchCountDown(); @@ -278,7 +282,9 @@ public abstract class CleanerChore extends Schedu POOL.updatePool((long) (0.8 * getTimeUnit().toMillis(getPeriod()))); } } else { - LOG.debug("Cleaner chore disabled! Not cleaning."); + if (LOG.isTraceEnabled()) { + LOG.trace("Cleaner chore disabled! Not cleaning."); + } } }