JAL-4116 relegate the failed to promote warning to Console.debug so most users won...
authorJames Procter <j.procter@dundee.ac.uk>
Wed, 25 Jan 2023 15:28:48 +0000 (15:28 +0000)
committerJames Procter <j.procter@dundee.ac.uk>
Wed, 25 Jan 2023 15:28:48 +0000 (15:28 +0000)
src/jalview/util/DBRefUtils.java

index e17a336..98d5e11 100755 (executable)
@@ -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());
+            }
           }
         }
       }