JAL-3672 more efficient when debug not enabled
[jalview.git] / src / jalview / ext / rbvi / chimera / JalviewChimeraBinding.java
index 487e93b..16aca58 100644 (file)
@@ -339,8 +339,10 @@ public abstract class JalviewChimeraBinding extends AAStructureBindingModel
     if (getResponse)
     {
       reply = lastReply;
-      Cache.log.debug(
-              "Response from command ('" + cmd + "') was:\n" + lastReply);
+      if (Cache.log.isDebugEnabled()) {
+        Cache.log.debug(
+              "Response from command ('" + cmd + "') was:\n" + lastReply); 
+      }
     }
 
     return reply;