Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B2ECD1018F for ; Thu, 26 Sep 2013 20:30:11 +0000 (UTC) Received: (qmail 62063 invoked by uid 500); 26 Sep 2013 20:30:08 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 61828 invoked by uid 500); 26 Sep 2013 20:30:06 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 61678 invoked by uid 99); 26 Sep 2013 20:30:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Sep 2013 20:30:04 +0000 Date: Thu, 26 Sep 2013 20:30:04 +0000 (UTC) From: "Hudson (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-9661) Consistent log severity level guards and statements MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-9661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13779188#comment-13779188 ] Hudson commented on HBASE-9661: ------------------------------- FAILURE: Integrated in HBase-TRUNK #4564 (See [https://builds.apache.org/job/HBase-TRUNK/4564/]) HBASE-9661 Consistent log severity level guards and statements (Jackie Chang) (jmhsieh: rev 1526620) * /hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/catalog/CatalogTracker.java * /hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java > Consistent log severity level guards and statements > ---------------------------------------------------- > > Key: HBASE-9661 > URL: https://issues.apache.org/jira/browse/HBASE-9661 > Project: HBase > Issue Type: Improvement > Affects Versions: 0.95.2 > Reporter: Jackie Chang > Assignee: Jackie Chang > Priority: Minor > Fix For: 0.98.0, 0.96.0 > > Attachments: HBASE-9661.patch > > > A log statement should be guarded by its matching severity level. A log statement like > if (LOG.isTraceEnabled()) { > LOG.debug(identifier + " opening connection to ZooKeeper ensemble=" + ensemble); > doesn't make much sense because the log message is only printed out when TRACE-level is enabled. This inconsistency was possibly introduced when developers demoted the original log statement from DEBUG but forgot to change its corresponding log severity level. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira