tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amy...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/buf C2BConverter.java
Date Mon, 20 Sep 2004 17:52:10 GMT
amyroh      2004/09/20 10:52:09

  Modified:    jk/java/org/apache/jk/config WebXml2Jk.java
               jk/test/org/apache/ajp/test TestAjp13.java
               util/java/org/apache/tomcat/util/buf C2BConverter.java
  Log:
  A couple more logging changes.
  
  Revision  Changes    Path
  1.7       +2 -1      jakarta-tomcat-connectors/jk/java/org/apache/jk/config/WebXml2Jk.java
  
  Index: WebXml2Jk.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/config/WebXml2Jk.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- WebXml2Jk.java	24 Feb 2004 08:48:43 -0000	1.6
  +++ WebXml2Jk.java	20 Sep 2004 17:52:09 -0000	1.7
  @@ -417,7 +417,8 @@
                                                      String systemId)
               throws SAXException, IOException
           {
  -            System.out.println("ResolveEntity: " + publicId + " " + systemId);
  +            if (log.isDebugEnabled())
  +                log.debug("ResolveEntity: " + publicId + " " + systemId);
               return new InputSource(new StringReader(""));
           }
       }
  
  
  
  1.4       +5 -1      jakarta-tomcat-connectors/jk/test/org/apache/ajp/test/TestAjp13.java
  
  Index: TestAjp13.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/test/org/apache/ajp/test/TestAjp13.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestAjp13.java	24 Feb 2004 08:48:44 -0000	1.3
  +++ TestAjp13.java	20 Sep 2004 17:52:09 -0000	1.4
  @@ -34,6 +34,9 @@
   
   public class TestAjp13 extends TestCase {
   
  +    private static org.apache.commons.logging.Log log=
  +        org.apache.commons.logging.LogFactory.getLog( TestAjp13.class );
  +
       Ajp13Server server = null;
   
       public TestAjp13(String name) {
  @@ -167,7 +170,8 @@
       }
   
       protected static void println(String msg) {
  -        System.out.println("[TestAjp13] " + msg);
  +        if (log.isDebugEnabled())
  +            log.debug("[TestAjp13] " + msg);
       }
   
       public static void main(String[] args) throws Exception {
  
  
  
  1.5       +6 -1      jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/buf/C2BConverter.java
  
  Index: C2BConverter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/buf/C2BConverter.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- C2BConverter.java	24 Feb 2004 08:50:06 -0000	1.4
  +++ C2BConverter.java	20 Sep 2004 17:52:09 -0000	1.5
  @@ -29,6 +29,10 @@
    * 
    */
   public final class C2BConverter {
  +    
  +    private static org.apache.commons.logging.Log log=
  +        org.apache.commons.logging.LogFactory.getLog(C2BConverter.class );
  +    
       private IntermediateOutputStream ios;
       private WriteConvertor conv;
       private ByteChunk bb;
  @@ -108,7 +112,8 @@
                                   charC.getOffset(), charC.getLength());
               //System.out.println("XXX Converting " + mb.getCharChunk() );
           } else {
  -            System.out.println("XXX unknowon type " + type );
  +            if (log.isDebugEnabled())
  +                log.debug("XXX unknowon type " + type );
           }
           flushBuffer();
           //System.out.println("C2B: XXX " + bb.getBuffer() + bb.getLength()); 
  
  
  

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


Mime
View raw message