urls.addAll(discoverer.getUrls());
for (String url : urls)
{
- statuses.add(discoverer.getStatusForUrl(url));
+ try {
+ statuses.add(discoverer.getStatusForUrl(url));
+ } catch (Throwable th) {
+ Console.warn("Problem when contacting slivka server at "+url,th);
+ }
}
}
}
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();