logging-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sde...@apache.org
Subject svn commit: r951826 - /logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LoggerNameTreePanel.java
Date Sun, 06 Jun 2010 05:53:22 GMT
Author: sdeboy
Date: Sun Jun  6 05:53:22 2010
New Revision: 951826

URL: http://svn.apache.org/viewvc?rev=951826&view=rev
Log:
Correct 'ignore all loggers' implementation (using node.getChidlren)

Modified:
    logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LoggerNameTreePanel.java

Modified: logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LoggerNameTreePanel.java
URL: http://svn.apache.org/viewvc/logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LoggerNameTreePanel.java?rev=951826&r1=951825&r2=951826&view=diff
==============================================================================
--- logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LoggerNameTreePanel.java
(original)
+++ logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LoggerNameTreePanel.java
Sun Jun  6 05:53:22 2010
@@ -962,13 +962,10 @@ final class LoggerNameTreePanel extends 
             //add all top level loggers as hidden loggers
               final DefaultMutableTreeNode root =
                 (DefaultMutableTreeNode) logTreeModel.getRoot();
-              Enumeration topLevelLoggersEnumeration = root.breadthFirstEnumeration();
-              //first element is root node - don't add it to set
-              topLevelLoggersEnumeration.nextElement();
+              Enumeration topLevelLoggersEnumeration = root.children();
               Set topLevelLoggersSet = new HashSet();
               while (topLevelLoggersEnumeration.hasMoreElements()) {
                   String thisLogger = topLevelLoggersEnumeration.nextElement().toString();
-                  System.out.println("logger: " + thisLogger);
                   topLevelLoggersSet.add(thisLogger);
               }
               if (topLevelLoggersSet.size() > 0) {
@@ -979,7 +976,7 @@ final class LoggerNameTreePanel extends 
               ignoreLoggerButton.setSelected(false);
               focusOnAction.setEnabled(false);
               popupMenu.hideCheck.setSelected(false);
-            fireChangeEvent();
+              fireChangeEvent();
           }
         };
 



Mime
View raw message