HBASE-3200 Make is so can disable DEBUG logging on HConnectionImplemenation without losing -- more along same vein
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1031859 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2937265741
commit
ed119ae20d
|
@ -49,5 +49,7 @@ log4j.logger.org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher=INFO
|
|||
#log4j.logger.org.apache.hadoop.dfs=DEBUG
|
||||
# Set this class to log INFO only otherwise its OTT
|
||||
|
||||
# Uncomment this if you want to remove logging of client region caching' messages
|
||||
# Uncomment the below if you want to remove logging of client region caching'
|
||||
# and scan of .META. messages
|
||||
# log4j.logger.org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation=INFO
|
||||
# log4j.logger.org.apache.hadoop.hbase.client.MetaScanner=INFO
|
||||
|
|
|
@ -162,9 +162,11 @@ public class MetaScanner {
|
|||
configuration.getInt("hbase.meta.scanner.caching", 100));
|
||||
do {
|
||||
final Scan scan = new Scan(startRow).addFamily(HConstants.CATALOG_FAMILY);
|
||||
LOG.debug("Scanning " + Bytes.toString(metaTableName) +
|
||||
" starting at row=" + Bytes.toString(startRow) + " for max=" +
|
||||
rowUpperLimit + " rows");
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Scanning " + Bytes.toString(metaTableName) +
|
||||
" starting at row=" + Bytes.toString(startRow) + " for max=" +
|
||||
rowUpperLimit + " rows");
|
||||
}
|
||||
callable = new ScannerCallable(connection, metaTableName, scan);
|
||||
// Open scanner
|
||||
connection.getRegionServerWithRetries(callable);
|
||||
|
|
Loading…
Reference in New Issue