From: James Procter Date: Wed, 25 Jan 2023 15:28:48 +0000 (+0000) Subject: JAL-4116 relegate the failed to promote warning to Console.debug so most users won... X-Git-Tag: Release_2_11_2_7~7^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2721b8356b47149e479d426fd559af97bc4af20e;p=jalview.git JAL-4116 relegate the failed to promote warning to Console.debug so most users won’t even see it (or be slowed down by it). --- 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()); + } } } }