hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-9661) Consistent log severity level guards and statements
Date Fri, 27 Sep 2013 01:30:06 GMT

    [ https://issues.apache.org/jira/browse/HBASE-9661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13779547#comment-13779547
] 

Hudson commented on HBASE-9661:
-------------------------------

SUCCESS: Integrated in HBase-TRUNK-on-Hadoop-2.0.0 #764 (See [https://builds.apache.org/job/HBase-TRUNK-on-Hadoop-2.0.0/764/])
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

Mime
View raw message