From 1beecd805820bfe74fdea66f86a027d2de894fd5 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 7 Oct 2019 09:08:10 +0100 Subject: [PATCH] JAL-3066 debug info: check response when adding features and annotation --- .../ws/slivkaws/SlivkaAnnotationServiceInstance.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/jalview/ws/slivkaws/SlivkaAnnotationServiceInstance.java b/src/jalview/ws/slivkaws/SlivkaAnnotationServiceInstance.java index 7ec7e6e..3a5899b 100644 --- a/src/jalview/ws/slivkaws/SlivkaAnnotationServiceInstance.java +++ b/src/jalview/ws/slivkaws/SlivkaAnnotationServiceInstance.java @@ -1,6 +1,7 @@ package jalview.ws.slivkaws; import jalview.api.FeatureColourI; +import jalview.bin.Cache; import jalview.datamodel.Alignment; import jalview.datamodel.AlignmentAnnotation; import jalview.datamodel.SequenceI; @@ -117,10 +118,17 @@ public class SlivkaAnnotationServiceInstance extends SlivkaWSInstance implements } Alignment aln = new Alignment(seqs.toArray(new SequenceI[0])); BufferedReader readerIn = new BufferedReader(new InputStreamReader(annotFile.getContent())); - new AnnotationFile().parseAnnotationFrom(aln, null, readerIn); + if (!new AnnotationFile().parseAnnotationFrom(aln, null, readerIn)) + { + Cache.log.debug("No annotation from slivka job\n" + annotFile); + } if (featFile != null) { - new FeaturesFile(featFile.getURL().toString(), DataSourceType.URL).parse(aln, featureColours, true); + if (!new FeaturesFile(featFile.getURL().toString(), + DataSourceType.URL).parse(aln, featureColours, true)) + { + Cache.log.debug("No features from slivka job\n" + featFile); + } } return Arrays.asList(aln.getAlignmentAnnotation()); } -- 1.7.10.2