billbarker    2002/09/12 22:23:32

  Modified:    src/share/org/apache/tomcat/util/hooks Hooks.java
  Log:
  Converting to commons-logging.
  
  Revision  Changes    Path
  1.9       +5 -5      jakarta-tomcat/src/share/org/apache/tomcat/util/hooks/Hooks.java
  
  Index: Hooks.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/hooks/Hooks.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Hooks.java        2 Jun 2002 05:30:31 -0000       1.8
  +++ Hooks.java        13 Sep 2002 05:23:32 -0000      1.9
  @@ -85,6 +85,9 @@
    * implementation
    */
   public class Hooks {
  +    static org.apache.commons.logging.Log logger =
  +     org.apache.commons.logging.LogFactory.getLog(Hooks.class);
  +
       public static final int INITIAL_HOOKS=24;
       int hookCount;
       String hookNames[];
  @@ -160,7 +163,8 @@
        for( int i=0; i< hookNames.length ; i++ ) {
            if( hookNames[i]==null ) continue;
            if( hasHook( bi, hookNames[i] )) {
  -             if( dL > 0 ) debug( "Adding " + hookNames[i] + " " +bi );
  +             if( logger.isDebugEnabled() ) 
  +                 logger.debug( "Adding " + hookNames[i] + " " +bi );
                hooksV[i].addElement( bi );
                hooks[i]=null;
            }
  @@ -207,10 +211,6 @@
        allModules=new Object[allModulesV.size()];
        allModulesV.copyInto( allModules );
        return allModules;
  -    }
  -
  -    private void debug(String s ) {
  -     System.out.println("Hooks: " + s );
       }
   
       /** Test if the interceptor implements a particular
  
  
  

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

Reply via email to