commit | a767426cfb18a408f0efb9e228745b2b8940925d | [log] [tgz] |
---|---|---|
author | Brian O'Connor <bocon@onlab.us> | Thu Jun 04 13:55:18 2015 -0700 |
committer | Brian O'Connor <bocon@onlab.us> | Thu Jun 04 13:55:18 2015 -0700 |
tree | 8dcbcf13cb44b462992d6e96a045b66ceee58281 | |
parent | 43548fc1320257e22d5f070032c68067cf649390 [diff] |
Adding trace logging to IntentManger Change-Id: I6cd55521484f52223de5cec563f13b61d97ae4a9
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/IntentManager.java b/core/net/src/main/java/org/onosproject/net/intent/impl/IntentManager.java index 3c73851..16404e3 100644 --- a/core/net/src/main/java/org/onosproject/net/intent/impl/IntentManager.java +++ b/core/net/src/main/java/org/onosproject/net/intent/impl/IntentManager.java
@@ -501,6 +501,14 @@ } }); + if (log.isTraceEnabled()) { + log.trace("applying intent {} -> {} with {} rules: {}", + toUninstall.isPresent() ? toUninstall.get().key() : "<empty>", + toInstall.isPresent() ? toInstall.get().key() : "<empty>", + operations.stages().stream().mapToLong(i -> i.size()).sum(), + operations.stages()); + } + flowRuleService.apply(operations); }