tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r786540 - /tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java
Date Fri, 19 Jun 2009 15:12:02 GMT
Author: markt
Date: Fri Jun 19 15:12:02 2009
New Revision: 786540

URL: http://svn.apache.org/viewvc?rev=786540&view=rev
Log:
Remove duplicate code - my bad from r781779. Thanks to sebb for spotting it.

Modified:
    tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java

Modified: tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java?rev=786540&r1=786539&r2=786540&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java (original)
+++ tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java Fri Jun 19 15:12:02 2009
@@ -659,11 +659,9 @@
     
                         // If the date has changed, switch log files
                         if (!dateStamp.equals(tsDate)) {
-                            if (!dateStamp.equals(tsDate)) {
-                                close();
-                                dateStamp = tsDate;
-                                open();
-                            }
+                            close();
+                            dateStamp = tsDate;
+                            open();
                         }
                     }
                 }



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


Mime
View raw message