Add more log for debugging.
Change-Id: I384729ae6b96a5e6fb6529f92cd4606b0262d46e
diff --git a/core/net/src/main/java/org/onosproject/net/flow/impl/FlowRuleManager.java b/core/net/src/main/java/org/onosproject/net/flow/impl/FlowRuleManager.java
index 2bd6ca2..7e601f2 100644
--- a/core/net/src/main/java/org/onosproject/net/flow/impl/FlowRuleManager.java
+++ b/core/net/src/main/java/org/onosproject/net/flow/impl/FlowRuleManager.java
@@ -410,7 +410,7 @@
try {
frp.applyFlowRule(flowRule);
} catch (UnsupportedOperationException e) {
- log.warn(e.getMessage());
+ log.warn("Unsupported operation", e);
if (flowRule instanceof DefaultFlowEntry) {
//FIXME modification of "stored" flow entry outside of store
((DefaultFlowEntry) flowRule).setState(FlowEntry.FlowEntryState.FAILED);
@@ -530,7 +530,7 @@
}
}
} catch (Exception e) {
- log.debug("Can't process added or extra rule {}", e.getMessage());
+ log.warn("Can't process added or extra rule {}", e);
}
}
@@ -542,7 +542,7 @@
log.debug("Adding rule in store, but not on switch {}", rule);
flowMissing(rule);
} catch (Exception e) {
- log.debug("Can't add missing flow rule:", e);
+ log.warn("Can't add missing flow rule:", e);
}
}
}