JAL-3672 more efficient when debug not enabled
authorJim Procter <jprocter@issues.jalview.org>
Fri, 26 Jun 2020 16:17:22 +0000 (17:17 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Fri, 26 Jun 2020 16:17:22 +0000 (17:17 +0100)
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;