ceki        2004/12/23 14:50:48

  Modified:    src/java/org/apache/log4j/pattern CachedDateFormat.java
  Log:
  Commented out System.out println statements
  
  Revision  Changes    Path
  1.12      +8 -8      
logging-log4j/src/java/org/apache/log4j/pattern/CachedDateFormat.java
  
  Index: CachedDateFormat.java
  ===================================================================
  RCS file: 
/home/cvs/logging-log4j/src/java/org/apache/log4j/pattern/CachedDateFormat.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- CachedDateFormat.java     23 Dec 2004 22:49:11 -0000      1.11
  +++ CachedDateFormat.java     23 Dec 2004 22:50:48 -0000      1.12
  @@ -68,7 +68,7 @@
       String formatted = formatter.format(slotBeginDate);
       cache.append(formatted);
       millisecondStart = findMillisecondStart(slotBegin, formatted, formatter);
  -    System.out.println("millisecondStart="+millisecondStart);
  +    //System.out.println("millisecondStart="+millisecondStart);
     } 
       
   
  @@ -86,8 +86,8 @@
       final long time, final String formatted, final DateFormat formatter) {
       String plus987 = formatter.format(new Date(time + 987));
   
  -    System.out.println("-formatted="+formatted);
  -    System.out.println("plus987="+plus987);
  +    //System.out.println("-formatted="+formatted);
  +    //System.out.println("plus987="+plus987);
       // find first difference between values
       for (int i = 0; i < formatted.length(); i++) {
         if (formatted.charAt(i) != plus987.charAt(i)) {
  @@ -122,7 +122,7 @@
       
       long now = date.getTime();
       if ((now < (slotBegin + 1000L)) && (now >= slotBegin)) {
  -      System.out.println("Using cached val:"+date);
  +      //System.out.println("Using cached val:"+date);
   
         // If there are NO_MILLISECONDS we don't bother computing the 
millisecs.
         if (millisecondStart >= 0) {
  @@ -131,13 +131,13 @@
   
           milliBuf.setLength(0);
           numberFormat.format(millis, milliBuf, fieldPosition);
  -        System.out.println("milliBuf="+milliBuf);
  +        //System.out.println("milliBuf="+milliBuf);
           for(int j = 0; j < JVM_MAX_MILLI_DIGITS; j++) {
             cache.setCharAt(millisecondStart+j, milliBuf.charAt(j));
           }
         }
       } else {
  -      System.out.println("Refreshing the cache: 
"+date+","+(date.getTime()%1000));
  +      //System.out.println("Refreshing the cache: 
"+date+","+(date.getTime()%1000));
         slotBegin = (now / 1000L) * 1000L;
         int prevLength = cache.length();
         cache.setLength(0);
  @@ -146,8 +146,8 @@
         //   if the length changed then
         //      recalculate the millisecond position
         if (cache.length() != prevLength && (milliDigits > 0)) {
  -        System.out.println("Recomputing cached len changed 
oldLen="+prevLength
  -              +", newLen="+cache.length());
  +        //System.out.println("Recomputing cached len changed 
oldLen="+prevLength
  +        //      +", newLen="+cache.length());
           //
           //    format the previous integral second
           StringBuffer tempBuffer = new StringBuffer(cache.length());
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to