axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/providers/java JavaProvider.java RPCProvider.java
Date Tue, 02 Oct 2001 18:10:41 GMT
rubys       01/10/02 11:10:41

  Modified:    java/src/org/apache/axis/providers/java JavaProvider.java
                        RPCProvider.java
  Log:
  Eliminate overhead to debug log calls when debug is not enabled
  
  Revision  Changes    Path
  1.18      +6 -3      xml-axis/java/src/org/apache/axis/providers/java/JavaProvider.java
  
  Index: JavaProvider.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/providers/java/JavaProvider.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- JavaProvider.java	2001/09/14 17:24:00	1.17
  +++ JavaProvider.java	2001/10/02 18:10:40	1.18
  @@ -181,7 +181,8 @@
        * the message (via processMessage).
        */
       public void invoke(MessageContext msgContext) throws AxisFault {
  -        category.debug( "Enter: JavaProvider::invoke (for provider "+this+")");
  +        if (category.isDebugEnabled())
  +            category.debug( "Enter: JavaProvider::invoke (for provider "+this+")");
   
           /* Find the service we're invoking so we can grab it's options */
           /***************************************************************/
  @@ -249,11 +250,13 @@
               if ( !(exp instanceof AxisFault) ) exp = new AxisFault(exp);
               throw (AxisFault) exp ;
           }
  -        category.debug("Exit: JavaProvider::invoke (for provider "+this+")");
  +        if (category.isDebugEnabled())
  +            category.debug("Exit: JavaProvider::invoke (for provider "+this+")");
       }
   
       public void generateWSDL(MessageContext msgContext) throws AxisFault {
  -        category.debug("Enter: JavaProvider::editWSDL (for provider "+this+")" );
  +        if (category.isDebugEnabled())
  +            category.debug("Enter: JavaProvider::editWSDL (for provider "+this+")" );
   
           /* Find the service we're invoking so we can grab it's options */
           /***************************************************************/
  
  
  
  1.20      +11 -6     xml-axis/java/src/org/apache/axis/providers/java/RPCProvider.java
  
  Index: RPCProvider.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/providers/java/RPCProvider.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- RPCProvider.java	2001/09/16 19:58:46	1.19
  +++ RPCProvider.java	2001/10/02 18:10:41	1.20
  @@ -88,8 +88,10 @@
       {
           category.debug("Enter::RPCProvider.processMessage()");
           Vector          bodies = reqEnv.getBodyElements();
  -        category.debug("There are " + bodies.size() + " body elements.");
  -        category.debug("body is " + bodies.get(0));
  +        if (category.isDebugEnabled()) {
  +            category.debug("There are " + bodies.size() + " body elements.");
  +            category.debug("body is " + bodies.get(0));
  +        }
   
           /* Loop over each entry in the SOAPBody - each one is a different */
           /* RPC call.                                                      */
  @@ -148,9 +150,11 @@
                                           "Service nameList=" + allowedMethods,
                                       null, null );  // should they??
               
  -            category.debug( "mName: " + mName );
  -            category.debug( "MethodNameMatch: " + methodNameMatch );
  -            category.debug( "MethodName List: " + allowedMethods );
  +            if (category.isDebugEnabled()) {
  +                category.debug( "mName: " + mName );
  +                category.debug( "MethodNameMatch: " + methodNameMatch );
  +                category.debug( "MethodName List: " + allowedMethods );
  +            }
   
   			///////////////////////////////////////////////////////////////
   			// If allowedMethods (i.e. methodNameMatch) is null, 
  @@ -221,7 +225,8 @@
                 }
               }
   
  -            category.debug("Got result: " + objRes);
  +            if (category.isDebugEnabled())
  +                category.debug("Got result: " + objRes);
   
               /* Now put the result in the result SOAPEnvelope */
               /*************************************************/
  
  
  

Mime
View raw message