From: Jim Procter Date: Fri, 26 Jun 2020 16:17:22 +0000 (+0100) Subject: JAL-3672 more efficient when debug not enabled X-Git-Tag: Develop-2_11_2_0-d20201215~24^2~36^2~3 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=cfe83544e2e75debc9ae23b8b15072f3cc632f88;p=jalview.git JAL-3672 more efficient when debug not enabled --- diff --git a/src/jalview/ext/rbvi/chimera/JalviewChimeraBinding.java b/src/jalview/ext/rbvi/chimera/JalviewChimeraBinding.java index 487e93b..16aca58 100644 --- a/src/jalview/ext/rbvi/chimera/JalviewChimeraBinding.java +++ b/src/jalview/ext/rbvi/chimera/JalviewChimeraBinding.java @@ -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;