From cfe83544e2e75debc9ae23b8b15072f3cc632f88 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 26 Jun 2020 17:17:22 +0100 Subject: [PATCH] JAL-3672 more efficient when debug not enabled --- src/jalview/ext/rbvi/chimera/JalviewChimeraBinding.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 1.7.10.2