From 15a605b8a12026b453e252477b416b2c82b6344a Mon Sep 17 00:00:00 2001 From: James Procter Date: Wed, 25 Jan 2023 15:28:48 +0000 Subject: [PATCH] =?utf8?q?JAL-4116=20relegate=20the=20failed=20to=20promote=20?= =?utf8?q?warning=20to=20Console.debug=20so=20most=20users=20won=E2=80=99t=20?= =?utf8?q?even=20see=20it=20(or=20be=20slowed=20down=20by=20it).?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/jalview/util/DBRefUtils.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/jalview/util/DBRefUtils.java b/src/jalview/util/DBRefUtils.java index e17a336..98d5e11 100755 --- a/src/jalview/util/DBRefUtils.java +++ b/src/jalview/util/DBRefUtils.java @@ -30,6 +30,7 @@ import java.util.Map; import com.stevesoft.pat.Regex; +import jalview.bin.Console; import jalview.datamodel.DBRefEntry; import jalview.datamodel.DBRefSource; import jalview.datamodel.Mapping; @@ -810,9 +811,12 @@ public class DBRefUtils // toPromote.add(cand); if (!cand.isPrimaryCandidate()) { - System.out.println( - "Warning: Couldn't promote dbref " + cand.toString() - + " for sequence " + sequence.toString()); + if (Console.isDebugEnabled()) + { + Console.debug( + "Warning: Couldn't promote dbref " + cand.toString() + + " for sequence " + sequence.toString()); + } } } } -- 1.7.10.2