commit | 25938a5bdfb415a5bba81dab67ab3c1f033c795e | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Wed Feb 24 11:25:07 2016 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Thu Feb 25 18:58:57 2016 +0000 |
tree | 291b6fe4fc2fb63d6ec42aa1fca6fafb28856b95 | |
parent | facad99d4d248564375728724098b5c5b931d7f5 [diff] |
Add logging in ConsistentResourceStore Change-Id: I8ce8236669c149f2ee810c5ff2c71591fa5a843c
diff --git a/core/store/dist/src/main/java/org/onosproject/store/newresource/impl/ConsistentResourceStore.java b/core/store/dist/src/main/java/org/onosproject/store/newresource/impl/ConsistentResourceStore.java index 934dfea..30d534d 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/newresource/impl/ConsistentResourceStore.java +++ b/core/store/dist/src/main/java/org/onosproject/store/newresource/impl/ConsistentResourceStore.java
@@ -180,11 +180,14 @@ boolean success = tx.commit(); if (success) { + log.trace("Transaction commit succeeded on registration: resources={}", resources); List<ResourceEvent> events = resources.stream() .filter(x -> x.parent().isPresent()) .map(x -> new ResourceEvent(RESOURCE_ADDED, x)) .collect(Collectors.toList()); notifyDelegate(events); + } else { + log.debug("Transaction commit failed on registration: resources={}", resources); } return success; }