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_3_0~23^2~8^2~3 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=15a605b8a12026b453e252477b416b2c82b6344a;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()); + } } } }