diff --git a/src/main/java/com/vmware/vim25/ws/SoapClient.java b/src/main/java/com/vmware/vim25/ws/SoapClient.java
index <HASH>..<HASH> 100644
--- a/src/main/java/com/vmware/vim25/ws/SoapClient.java
+++ b/src/main/java/com/vmware/vim25/ws/SoapClient.java
@@ -237,7 +237,9 @@ public abstract class SoapClient implements Client {
      */
     public String marshall(String methodName, Argument[] paras) {
         String soapMsg = XmlGen.toXML(methodName, paras, vimNameSpace);
-        log.trace("Marshalled Payload String xml: " + soapMsg);
+        if (log.isTraceEnabled()) {
+            log.trace("Marshalled Payload String xml: " + soapMsg);
+        }
         return soapMsg;
     }
Performance improvement - don't issue a log.trace with a huge string content concatnation, without first checking if trace is enabled