From 1858f177166fea9c11c3930e14cbfe27f81acb65 Mon Sep 17 00:00:00 2001 From: Andrew Kyle Purtell Date: Wed, 16 Dec 2009 09:33:52 +0000 Subject: [PATCH] wal.HLog is way too chatty at INFO level git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@891166 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/hadoop/hbase/regionserver/wal/HLog.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/hadoop/hbase/regionserver/wal/HLog.java b/src/java/org/apache/hadoop/hbase/regionserver/wal/HLog.java index e1eb9c34d06..2f2c3196835 100644 --- a/src/java/org/apache/hadoop/hbase/regionserver/wal/HLog.java +++ b/src/java/org/apache/hadoop/hbase/regionserver/wal/HLog.java @@ -852,7 +852,11 @@ public class HLog implements HConstants, Syncable { } try { this.editsSize.addAndGet(logKey.heapSize() + logEdit.heapSize()); - if (this.numEntries.get() % this.flushlogentries == 0) LOG.info("edit=" + this.numEntries.get() + ", write=" + logKey.toString()); + if (LOG.isDebugEnabled() && + (this.numEntries.get() % this.flushlogentries == 0)) { + LOG.debug("edit=" + this.numEntries.get() + ", write=" + + logKey.toString()); + } this.writer.append(logKey, logEdit); long took = System.currentTimeMillis() - now; if (took > 1000) {