billbarker    2002/09/13 00:44:43

  Modified:    src/share/org/apache/tomcat/util JavaGeneratorTool.java
                        ObjectSerializer.java
  Log:
  Converting to commons-logging.
  
  Revision  Changes    Path
  1.8       +4 -3      
jakarta-tomcat/src/share/org/apache/tomcat/util/JavaGeneratorTool.java
  
  Index: JavaGeneratorTool.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/JavaGeneratorTool.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- JavaGeneratorTool.java    8 Feb 2002 13:00:18 -0000       1.7
  +++ JavaGeneratorTool.java    13 Sep 2002 07:44:43 -0000      1.8
  @@ -61,7 +61,8 @@
    *  classes
    */
   public class JavaGeneratorTool {
  -
  +    static org.apache.commons.logging.Log logger = 
  +         org.apache.commons.logging.LogFactory.getLog(JavaGeneratorTool.class);
       /** Mangle Package names to avoid reserver words
        **/
       public static final String manglePackage( String s ) {
  @@ -160,7 +161,7 @@
               }
            fis.close();
        } catch( Exception ex ) {
  -         System.out.println("readVersion() mapPath=" + mapFile + ex);
  +         logger.info("readVersion() mapPath=" + mapFile, ex);
            return -1;
        }
   
  @@ -192,7 +193,7 @@
            fis.write(version);
            fis.close();
        } catch( Exception ex ) {
  -         System.out.println("writeVersion() " + mapFile + ex);
  +         logger.info("writeVersion() " + mapFile , ex);
        }
       }
   
  
  
  
  1.3       +3 -1      
jakarta-tomcat/src/share/org/apache/tomcat/util/ObjectSerializer.java
  
  Index: ObjectSerializer.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/ObjectSerializer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ObjectSerializer.java     1 Jan 2001 00:17:24 -0000       1.2
  +++ ObjectSerializer.java     13 Sep 2002 07:44:43 -0000      1.3
  @@ -90,6 +90,8 @@
    */
   public final class ObjectSerializer
   {
  +    static org.apache.commons.logging.Log logger = 
  +     org.apache.commons.logging.LogFactory.getLog(ObjectSerializer.class);
       /**
          This is the method that does the serialization.
       */
  @@ -121,7 +123,7 @@
            // XXX We should call Logger.log - this is a problem, but
            // it's better to have a bug ( writing to out instead of log)
            // than adding dependencies to context.
  -         System.out.println( "SessionSerializer: " + e );
  +         logger.error( "SessionSerializer: " , e );
        }
        return sessions;
       }
  
  
  

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

Reply via email to