You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by bo...@apache.org on 2006/10/17 20:17:05 UTC

svn commit: r464986 - /incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/AxisInvoker.java

Author: boisvert
Date: Tue Oct 17 11:17:04 2006
New Revision: 464986

URL: http://svn.apache.org/viewvc?view=rev&rev=464986
Log:
Optimize out debug logging

Modified:
    incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/AxisInvoker.java

Modified: incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/AxisInvoker.java
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/AxisInvoker.java?view=diff&rev=464986&r1=464985&r2=464986
==============================================================================
--- incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/AxisInvoker.java (original)
+++ incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/AxisInvoker.java Tue Oct 17 11:17:04 2006
@@ -68,8 +68,10 @@
 
       Options options = new Options();
       EndpointReference axisEPR = new EndpointReference(((MutableEndpoint)odeMex.getEndpointReference()).getUrl());
-      __log.debug("Axis2 sending message to " + axisEPR.getAddress() + " using MEX " + odeMex);
-      __log.debug("Message: " + payload);
+      if (__log.isDebugEnabled()) {
+        __log.debug("Axis2 sending message to " + axisEPR.getAddress() + " using MEX " + odeMex);
+        __log.debug("Message: " + payload);
+      }
       options.setTo(axisEPR);
 
       final ServiceClient serviceClient = new ServiceClient();
@@ -95,8 +97,10 @@
 
         final Message response = odeMex.createMessage(odeMex.getOperation().getOutput().getMessage().getQName());
         Element responseElmt = OMUtils.toDOM(reply);
-        __log.debug("Received synchronous response for MEX " + odeMex);
-        __log.debug("Message: " + DOMUtils.domToString(responseElmt));
+        if (__log.isDebugEnabled()) {
+          __log.debug("Received synchronous response for MEX " + odeMex);
+          __log.debug("Message: " + DOMUtils.domToString(responseElmt));
+        }
         response.setMessage(OMUtils.toDOM(reply));
         odeMex.reply(response);
       } else