logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1405193 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/AppenderControl.java
Date Fri, 02 Nov 2012 22:30:53 GMT
Author: ggregory
Date: Fri Nov  2 22:30:53 2012
New Revision: 1405193

URL: http://svn.apache.org/viewvc?rev=1405193&view=rev
Log:
The expression of type Appender is already an instance of type LifeCycle.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/AppenderControl.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/AppenderControl.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/AppenderControl.java?rev=1405193&r1=1405192&r2=1405193&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/AppenderControl.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/AppenderControl.java
Fri Nov  2 22:30:53 2012
@@ -82,7 +82,7 @@ public class AppenderControl extends Fil
         try {
             recursive.set(this);
 
-            if (appender instanceof LifeCycle && !appender.isStarted()) {
+            if (!appender.isStarted()) {
                 appender.getHandler().error("Attempted to append to non-started appender
" + appender.getName());
 
                 if (!appender.isExceptionSuppressed()) {



Mime
View raw message