Removed dead code + Dropped log level down to debug to reduce verbosity
Change-Id: I565775261a63b391011e1b341903390a9f26b6a6
diff --git a/core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DatabaseManager.java b/core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DatabaseManager.java
index 181490e..f6314c8 100644
--- a/core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DatabaseManager.java
+++ b/core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DatabaseManager.java
@@ -31,7 +31,6 @@
import net.kuujo.copycat.log.BufferedLog;
import net.kuujo.copycat.log.FileLog;
import net.kuujo.copycat.log.Log;
-import net.kuujo.copycat.netty.NettyTcpProtocol;
import net.kuujo.copycat.protocol.Consistency;
import net.kuujo.copycat.protocol.Protocol;
import net.kuujo.copycat.util.concurrent.NamedThreadFactory;
@@ -233,19 +232,6 @@
.collect(Collectors.toList());
}
- @SuppressWarnings("unused")
- private Protocol newNettyProtocol() {
- return new NettyTcpProtocol()
- .withSsl(false)
- .withConnectTimeout(60000)
- .withAcceptBacklog(1024)
- .withTrafficClass(-1)
- .withSoLinger(-1)
- .withReceiveBufferSize(32768)
- .withSendBufferSize(8192)
- .withThreads(1);
- }
-
private Log newPersistentLog() {
String logDir = System.getProperty("karaf.data", "./data");
return new FileLog()
diff --git a/providers/openflow/device/src/main/java/org/onosproject/provider/of/device/impl/OpenFlowDeviceProvider.java b/providers/openflow/device/src/main/java/org/onosproject/provider/of/device/impl/OpenFlowDeviceProvider.java
index 7351476..56d41ff 100644
--- a/providers/openflow/device/src/main/java/org/onosproject/provider/of/device/impl/OpenFlowDeviceProvider.java
+++ b/providers/openflow/device/src/main/java/org/onosproject/provider/of/device/impl/OpenFlowDeviceProvider.java
@@ -158,7 +158,7 @@
@Override
public void triggerProbe(DeviceId deviceId) {
- LOG.info("Triggering probe on device {}", deviceId);
+ LOG.debug("Triggering probe on device {}", deviceId);
final Dpid dpid = dpid(deviceId.uri());
OpenFlowSwitch sw = controller.getSwitch(dpid);
@@ -199,7 +199,7 @@
LOG.error("Unknown Mastership state : {}", newRole);
}
- LOG.info("Accepting mastership role change for device {}", deviceId);
+ LOG.debug("Accepting mastership role change for device {}", deviceId);
}
private void pushPortMetrics(Dpid dpid, List<OFPortStatsEntry> portStatsEntries) {