From: gmungoc Date: Tue, 26 May 2020 13:21:49 +0000 (+0100) Subject: JAL-3624 log when SIFTS mapping fails X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=103668e53e9efaef3d49a5a30f8e4644009c1747;p=jalview.git JAL-3624 log when SIFTS mapping fails --- diff --git a/src/jalview/structure/StructureSelectionManager.java b/src/jalview/structure/StructureSelectionManager.java index 798b07a..8c3816e 100644 --- a/src/jalview/structure/StructureSelectionManager.java +++ b/src/jalview/structure/StructureSelectionManager.java @@ -20,8 +20,20 @@ */ package jalview.structure; +import java.io.PrintStream; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.Enumeration; +import java.util.HashMap; +import java.util.IdentityHashMap; +import java.util.List; +import java.util.Map; +import java.util.Vector; + import jalview.analysis.AlignSeq; import jalview.api.StructureSelectionManagerProvider; +import jalview.bin.Cache; import jalview.commands.CommandI; import jalview.commands.EditCommand; import jalview.commands.OrderCommand; @@ -45,18 +57,6 @@ import jalview.util.Platform; import jalview.ws.sifts.SiftsClient; import jalview.ws.sifts.SiftsException; import jalview.ws.sifts.SiftsSettings; - -import java.io.PrintStream; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.Enumeration; -import java.util.HashMap; -import java.util.IdentityHashMap; -import java.util.List; -import java.util.Map; -import java.util.Vector; - import mc_view.Atom; import mc_view.PDBChain; import mc_view.PDBfile; @@ -430,7 +430,8 @@ public class StructureSelectionManager } catch (SiftsException e) { isMapUsingSIFTs = false; - e.printStackTrace(); + Cache.log.error("SIFTS mapping failed", e); + Cache.log.error("Falling back on Needleman & Wunsch alignment"); siftsClient = null; }