});
}
+ public void reportStatus(ServiceState serviceState, Throwable throwable) {
+ LOG.debug("reporting status as {} for {}", serviceState, OPENFLOW_SERVICE_NAME);
+ diagStatusService.report(new ServiceDescriptor(OPENFLOW_SERVICE_NAME, throwable));
+ }
+
public void reportStatus(ServiceState serviceState, String description) {
LOG.debug("reporting status as {} for {}", serviceState, OPENFLOW_SERVICE_NAME);
diagStatusService.report(new ServiceDescriptor(OPENFLOW_SERVICE_NAME, serviceState, description));
@Override
public void onFailure(@Nonnull final Throwable throwable) {
LOG.warn("Some switchConnectionProviders failed to start.", throwable);
- openflowPluginStatusMonitor.reportStatus(ServiceState.ERROR, "some switch connections failed to start");
+ openflowPluginStatusMonitor.reportStatus(ServiceState.ERROR, throwable);
}
}, MoreExecutors.directExecutor());
}