You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fu...@apache.org on 2003/12/22 21:31:15 UTC

cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/valves ExtendedAccessLogValve.java

funkman     2003/12/22 12:31:15

  Modified:    catalina/src/share/org/apache/catalina/valves
                        ExtendedAccessLogValve.java
  Log:
  BZ 25703 - ExtendedLogValve use wrong filename after rotate or checkexits case
  Patch submitted by Peter Rossbach pr at webapp dot de
  
  Revision  Changes    Path
  1.6       +7 -9      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/valves/ExtendedAccessLogValve.java
  
  Index: ExtendedAccessLogValve.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/valves/ExtendedAccessLogValve.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ExtendedAccessLogValve.java	2 Sep 2003 21:22:03 -0000	1.5
  +++ ExtendedAccessLogValve.java	22 Dec 2003 20:31:15 -0000	1.6
  @@ -680,9 +680,8 @@
               }
   
               /* Make sure date is correct */
  -            currentDate = new Date();
  -            fileDateFormatter = new SimpleDateFormat("yyyy-MM-dd");
  -            dateStamp = dateFormatter.format(currentDate);
  +            currentDate = new Date(System.currentTimeMillis());
  +            dateStamp = fileDateFormatter.format(currentDate);
   
               open();
               return true;
  @@ -953,8 +952,7 @@
   
                       /* Make sure date is correct */
                       currentDate = new Date(System.currentTimeMillis());
  -                    fileDateFormatter = new SimpleDateFormat("yyyy-MM-dd");
  -                    dateStamp = dateFormatter.format(currentDate);
  +                    dateStamp = fileDateFormatter.format(currentDate);
   
                       open();
                   }
  
  
  

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