JAL-3066 catch exceptions and report slivka server discovery status on Console
[jalview.git] / src / jalview / ws / slivkaws / SlivkaWSDiscoverer.java
index 9369c6b..d45b918 100644 (file)
@@ -88,18 +88,20 @@ public class SlivkaWSDiscoverer implements WSDiscovererI
 
   private List<ServiceWithParameters> reloadServices()
   {
-    Console.info("Reloading Slivka services");
+    Console.info("Reloading Slivka services - contacting "+getServiceUrls().size()+" services");
     notifyServiceListeners(Collections.emptyList());
     ArrayList<ServiceWithParameters> instances = new ArrayList<>();
 
     for (String url : getServiceUrls())
     {
+      Console.debug("Contacting Slivka server at "+url);
       SlivkaClient client = new SlivkaClient(url);
 
       List<SlivkaService> services;
       try
       {
         services = client.getServices();
+       Console.debug((services==null ? "No services at " : "Found "+services.size()+" services at ") + url); 
       } catch (IOException e)
       {
         e.printStackTrace();