Removed log statements to prevent log clutter
diff --git a/src/main/java/net/floodlightcontroller/onoslistener/OnosPublisher.java b/src/main/java/net/floodlightcontroller/onoslistener/OnosPublisher.java
index 9cb1c4f..36cde95 100644
--- a/src/main/java/net/floodlightcontroller/onoslistener/OnosPublisher.java
+++ b/src/main/java/net/floodlightcontroller/onoslistener/OnosPublisher.java
@@ -80,16 +80,15 @@
}
}
}
-
-
protected void switchCleanup() {
-
TopoSwitchServiceImpl impl = new TopoSwitchServiceImpl();
Iterable<ISwitchObject> switches = impl.getActiveSwitches();
+
+ log.debug("Checking for inactive switches");
// For each switch check if a controller exists in controller registry
for (ISwitchObject sw: switches) {
- log.debug("checking if switch is inactive: {}", sw.getDPID());
+ //log.debug("checking if switch is inactive: {}", sw.getDPID());
try {
long dpid = HexString.toLong(sw.getDPID());
String controller = registryService.getControllerForSwitch(dpid);
diff --git a/src/main/java/net/onrc/onos/registry/controller/SwitchRegistryResource.java b/src/main/java/net/onrc/onos/registry/controller/SwitchRegistryResource.java
index d6f3dee..0a7ac5d 100644
--- a/src/main/java/net/onrc/onos/registry/controller/SwitchRegistryResource.java
+++ b/src/main/java/net/onrc/onos/registry/controller/SwitchRegistryResource.java
@@ -26,11 +26,11 @@
switches = new HashMap<String, List<ControllerRegistryEntry>>();
}
- for (List<ControllerRegistryEntry> list: switches.values()){
+ /*for (List<ControllerRegistryEntry> list: switches.values()){
for (ControllerRegistryEntry en : list) {
log.debug("Controller id {}", en.getControllerId());
}
- }
+ }*/
return switches;
}