Committed by
Gerrit Code Review
Add logging in ConsistentResourceStore
Change-Id: I8ce8236669c149f2ee810c5ff2c71591fa5a843c
Showing
1 changed file
with
3 additions
and
0 deletions
... | @@ -180,11 +180,14 @@ public class ConsistentResourceStore extends AbstractStore<ResourceEvent, Resour | ... | @@ -180,11 +180,14 @@ public class ConsistentResourceStore extends AbstractStore<ResourceEvent, Resour |
180 | 180 | ||
181 | boolean success = tx.commit(); | 181 | boolean success = tx.commit(); |
182 | if (success) { | 182 | if (success) { |
183 | + log.trace("Transaction commit succeeded on registration: resources={}", resources); | ||
183 | List<ResourceEvent> events = resources.stream() | 184 | List<ResourceEvent> events = resources.stream() |
184 | .filter(x -> x.parent().isPresent()) | 185 | .filter(x -> x.parent().isPresent()) |
185 | .map(x -> new ResourceEvent(RESOURCE_ADDED, x)) | 186 | .map(x -> new ResourceEvent(RESOURCE_ADDED, x)) |
186 | .collect(Collectors.toList()); | 187 | .collect(Collectors.toList()); |
187 | notifyDelegate(events); | 188 | notifyDelegate(events); |
189 | + } else { | ||
190 | + log.debug("Transaction commit failed on registration: resources={}", resources); | ||
188 | } | 191 | } |
189 | return success; | 192 | return success; |
190 | } | 193 | } | ... | ... |
-
Please register or login to post a comment