tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/logger FileLogger.java
Date Thu, 25 Oct 2001 20:07:44 GMT
remm        01/10/25 13:07:44

  Modified:    catalina/src/share/org/apache/catalina/logger Tag:
                        tomcat_40_branch FileLogger.java
  Log:
  - Port back additional tweaks for potential thread safety problems.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.3.2.1   +9 -7      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/logger/FileLogger.java
  
  Index: FileLogger.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/logger/FileLogger.java,v
  retrieving revision 1.3
  retrieving revision 1.3.2.1
  diff -u -r1.3 -r1.3.2.1
  --- FileLogger.java	2001/08/27 19:10:25	1.3
  +++ FileLogger.java	2001/10/25 20:07:44	1.3.2.1
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/logger/FileLogger.java,v
1.3 2001/08/27 19:10:25 craigmcc Exp $
  - * $Revision: 1.3 $
  - * $Date: 2001/08/27 19:10:25 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/logger/FileLogger.java,v
1.3.2.1 2001/10/25 20:07:44 remm Exp $
  + * $Revision: 1.3.2.1 $
  + * $Date: 2001/10/25 20:07:44 $
    *
    * ====================================================================
    *
  @@ -84,7 +84,7 @@
    * optional preceding timestamp.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.3 $ $Date: 2001/08/27 19:10:25 $
  + * @version $Revision: 1.3.2.1 $ $Date: 2001/10/25 20:07:44 $
    */
   
   public final class FileLogger
  @@ -279,9 +279,11 @@
           // If the date has changed, switch log files
           if (!date.equals(tsDate)) {
               synchronized (this) {
  -                close();
  -                date = tsDate;
  -                open();
  +                if (!date.equals(tsDate)) {
  +                    close();
  +                    date = tsDate;
  +                    open();
  +                }
               }
           }
   
  
  
  

Mime
View raw message