HIGUCHI Yuta
Committed by Gerrit Code Review

ONOS-3996 shorter warn log message

- Print only number of failed values at WARN level
- Details can still be observed if log level set to DEBUG

Change-Id: I0964df33c2b0638bcb460949826956672999181d
......@@ -239,7 +239,9 @@ public class ConsistentResourceStore extends AbstractStore<ResourceEvent, Resour
}
if (!removeValues(childTxMap, entry.getKey(), entry.getValue())) {
log.warn("Failed to unregister {}: Failed to remove values: {}",
log.warn("Failed to unregister {}: Failed to remove {} values.",
entry.getKey(), entry.getValue().size());
log.debug("Failed to unregister {}: Failed to remove values: {}",
entry.getKey(), entry.getValue());
return abortTransaction(tx);
}
......