Removed topology logging in Intent framework
Change-Id: Ife8883cd4bccc489548a6875dc5c9b1d17714673
diff --git a/src/main/java/net/onrc/onos/core/intent/runtime/PathCalcRuntime.java b/src/main/java/net/onrc/onos/core/intent/runtime/PathCalcRuntime.java
index 03e23c5..3dc5252 100644
--- a/src/main/java/net/onrc/onos/core/intent/runtime/PathCalcRuntime.java
+++ b/src/main/java/net/onrc/onos/core/intent/runtime/PathCalcRuntime.java
@@ -55,7 +55,6 @@
// TODO optimize locking of Topology
topology.acquireReadLock();
- log.debug("Topology: {}", topology.getLinks());
for (IntentOperation intentOp : intentOpList) {
switch (intentOp.operator) {
@@ -73,10 +72,9 @@
Switch srcSwitch = topology.getSwitch(spIntent.getSrcSwitchDpid());
Switch dstSwitch = topology.getSwitch(spIntent.getDstSwitchDpid());
if (srcSwitch == null || dstSwitch == null) {
- log.error("Switch not found. src:{}, dst:{}, Topology:{}",
+ log.debug("Switch not found. src:{}, dst:{}",
spIntent.getSrcSwitchDpid(),
- spIntent.getDstSwitchDpid(),
- topology.getLinks());
+ spIntent.getDstSwitchDpid());
pathIntentOpList.add(Operator.ERROR, new ErrorIntent(
ErrorType.SWITCH_NOT_FOUND,
"Switch not found.",
@@ -98,7 +96,7 @@
}
Path path = tree.getPath(dstSwitch);
if (path == null) {
- log.error("Path not found. Intent: {}, Topology: {}", spIntent.toString(), topology.getLinks());
+ log.debug("Path not found. Intent: {}", spIntent.toString());
pathIntentOpList.add(Operator.ERROR, new ErrorIntent(
ErrorType.PATH_NOT_FOUND,
"Path not found.",