Author: boisvert
Date: Tue Feb 27 08:37:55 2007
New Revision: 512312

URL: http://svn.apache.org/viewvc?view=rev&rev=512312
Log:
Add a couple log.isDebugEnabled()

Modified:
    
incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java

Modified: 
incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java?view=diff&rev=512312&r1=512311&r2=512312
==============================================================================
--- 
incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
 (original)
+++ 
incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
 Tue Feb 27 08:37:55 2007
@@ -349,9 +349,10 @@
             // Conventional Assignment logic.
             Node rvalue = evalRValue(ocopy.from);
             Node lvalue = evalLValue(ocopy.to);
-            __log.debug("lvalue after eval " + lvalue);
-            if (lvalue != null)
-                __log.debug("content " + DOMUtils.domToString(lvalue));
+            if (__log.isDebugEnabled()) {
+                __log.debug("lvalue after eval " + lvalue);
+                if (lvalue != null) __log.debug("content " + 
DOMUtils.domToString(lvalue));
+            }
 
             // Get a pointer within the lvalue.
             Node lvaluePtr = lvalue;
@@ -373,7 +374,8 @@
                 LValueExpression lexpr = (LValueExpression) ocopy.to;
                 lvaluePtr = evalQuery(lvalue, null, lexpr.expression,
                         new EvaluationContextProxy(lexpr.getVariable(), 
lvalue));
-                __log.debug("lvaluePtr expr res " + lvaluePtr);
+                if (__log.isDebugEnabled())
+                    __log.debug("lvaluePtr expr res " + lvaluePtr);
             }
 
             // For partner link assignmenent, the whole content is assigned.
@@ -402,7 +404,7 @@
                         .getVariable());
                 if (__log.isDebugEnabled())
                     __log.debug("ASSIGN Writing variable '" + 
lval.declaration.name +
-                            "' value '" + DOMUtils.domToString(lvalue) +"'");
+                                "' value '" + DOMUtils.domToString(lvalue) 
+"'");
                 napi.commitChanges(lval, lvalue);
             }
         }
@@ -449,8 +451,8 @@
             Element replacement = (Element)doc.importNode(src, true);
             parent.replaceChild(replacement, ptr);
             return (lval == ptr) ? replacement :  lval;
-        } 
-    
+        }
+
         Element replacement = doc.createElementNS(ptr.getNamespaceURI(), ptr
                 .getLocalName());
         NodeList nl = src.getChildNodes();
@@ -474,9 +476,11 @@
             throws FaultException {
         Document d = lvaluePtr.getOwnerDocument();
 
-        __log.debug("lvaluePtr type " + lvaluePtr.getNodeType());
-        __log.debug("lvaluePtr " + DOMUtils.domToString(lvaluePtr));
-        __log.debug("lvalue " + lvalue);
+        if (__log.isDebugEnabled()) {
+            __log.debug("lvaluePtr type " + lvaluePtr.getNodeType());
+            __log.debug("lvaluePtr " + DOMUtils.domToString(lvaluePtr));
+            __log.debug("lvalue " + lvalue);
+        }
 
         switch (lvaluePtr.getNodeType()) {
             case Node.ELEMENT_NODE:


Reply via email to