logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From psm...@apache.org
Subject cvs commit: jakarta-log4j/src/java/org/apache/log4j/chainsaw LogPanelLoggerTreeModel.java
Date Fri, 26 Sep 2003 08:17:17 GMT
psmith      2003/09/26 01:17:17

  Modified:    src/java/org/apache/log4j/chainsaw
                        LogPanelLoggerTreeModel.java
  Log:
  Fixed a bug where a map containing package names to
  tree nodes wasn't using the correct looping index.
  
  Revision  Changes    Path
  1.7       +4 -1      jakarta-log4j/src/java/org/apache/log4j/chainsaw/LogPanelLoggerTreeModel.java
  
  Index: LogPanelLoggerTreeModel.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/chainsaw/LogPanelLoggerTreeModel.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- LogPanelLoggerTreeModel.java	17 Sep 2003 01:16:26 -0000	1.6
  +++ LogPanelLoggerTreeModel.java	26 Sep 2003 08:17:17 -0000	1.7
  @@ -142,7 +142,7 @@
         StringBuffer fullPackageBuf = new StringBuffer();
   
         for (int j = 0; j <= i; j++) {
  -        fullPackageBuf.append(packages[i]);
  +        fullPackageBuf.append(packages[j]);
   
           if (j < i) {
             fullPackageBuf.append(".");
  @@ -172,6 +172,9 @@
     LogPanelTreeNode lookupLogger(String logger) {
       if (fullPackageMap.containsKey(logger)) {
         return (LogPanelTreeNode) fullPackageMap.get(logger);
  +    }else{
  +        LogLog.debug("No logger found matching '" + logger + "'");
  +        LogLog.debug("Map Dump: " + fullPackageMap);
       }
   
       return null;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org


Mime
View raw message