HBASE-9661 Consistent log severity level guards and statements (Jackie Chang)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1526620 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Hsieh 2013-09-26 17:35:50 +00:00
parent 0ff371fe05
commit 331b585934
2 changed files with 2 additions and 2 deletions

View File

@ -307,7 +307,7 @@ public class CatalogTracker {
if (waitForMeta(100) != null) break; if (waitForMeta(100) != null) break;
} catch (NotAllMetaRegionsOnlineException e) { } catch (NotAllMetaRegionsOnlineException e) {
if (LOG.isTraceEnabled()) { if (LOG.isTraceEnabled()) {
LOG.info("hbase:meta still not available, sleeping and retrying." + LOG.trace("hbase:meta still not available, sleeping and retrying." +
" Reason: " + e.getMessage()); " Reason: " + e.getMessage());
} }
} }

View File

@ -122,7 +122,7 @@ public class ZKUtil {
int timeout = conf.getInt(HConstants.ZK_SESSION_TIMEOUT, int timeout = conf.getInt(HConstants.ZK_SESSION_TIMEOUT,
HConstants.DEFAULT_ZK_SESSION_TIMEOUT); HConstants.DEFAULT_ZK_SESSION_TIMEOUT);
if (LOG.isTraceEnabled()) { if (LOG.isTraceEnabled()) {
LOG.debug(identifier + " opening connection to ZooKeeper ensemble=" + ensemble); LOG.trace(identifier + " opening connection to ZooKeeper ensemble=" + ensemble);
} }
int retry = conf.getInt("zookeeper.recovery.retry", 3); int retry = conf.getInt("zookeeper.recovery.retry", 3);
int retryIntervalMillis = int retryIntervalMillis =