logging-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sde...@apache.org
Subject svn commit: r831519 - /logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/TableColorizingRenderer.java
Date Sat, 31 Oct 2009 08:00:37 GMT
Author: sdeboy
Date: Sat Oct 31 08:00:36 2009
New Revision: 831519

URL: http://svn.apache.org/viewvc?rev=831519&view=rev
Log:
If LEVEL is 1st column, don't null out icon when determining if marker icon should be displayed

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

Modified: logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/TableColorizingRenderer.java
URL: http://svn.apache.org/viewvc/logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/TableColorizingRenderer.java?rev=831519&r1=831518&r2=831519&view=diff
==============================================================================
--- logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/TableColorizingRenderer.java
(original)
+++ logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/TableColorizingRenderer.java
Sat Oct 31 08:00:36 2009
@@ -195,7 +195,10 @@
       if (event.getProperty(ChainsawConstants.MARKER_PROPERTY_NAME) != null) {
         c.setIcon(markerIcon);
       } else {
-        c.setIcon(null);
+        //only null out the column if it's not the level field
+        if (colIndex != ChainsawColumns.INDEX_LEVEL_COL_NAME) {
+            c.setIcon(null);
+        }
       }
     }
 



Mime
View raw message