private void processChanges(Collection<DataTreeModification<Node>> changes)
throws TransactionCommitFailedException {
- LOG.info("onDataTreeChanged: Received Data Tree Changed ...", changes);
+ LOG.info("onDataTreeChanged: Received Data Tree Changes: {}", changes);
for (DataTreeModification<Node> change : changes) {
final InstanceIdentifier<Node> key = change.getRootPath().getRootIdentifier();
final DataObjectModification<Node> mod = change.getRootNode();
try {
processChanges(changes);
} catch (TransactionCommitFailedException e) {
- LOG.error("Transaction commit failed; ignorining changes: ", changes, e);
+ LOG.error("Transaction commit failed; ignorining changes: {}", changes, e);
}
}
@Override
public void onDataTreeChanged(@Nonnull Collection<DataTreeModification<Node>> changes) {
- LOG.info("onDataTreeChanged: Received Data Tree Changed ...", changes);
+ LOG.info("onDataTreeChanged: Received Data Tree Changes: {}", changes);
executorService.execute(() -> {
try {
for (DataTreeModification<Node> change : Preconditions.checkNotNull(changes,
processDataTreeModification(change);
}
} catch (TransactionCommitFailedException e) {
- LOG.error("Transaction commit failed; ignorining changes: ", changes, e);
+ LOG.error("Transaction commit failed; ignorining changes: {}", changes, e);
}
});
}
if (LOG.isInfoEnabled()) {
final StringBuilder messageBuilder = new StringBuilder(prefix);
formatChanges(messageBuilder, changes);
- LOG.info("{}", messageBuilder.toString());
+ LOG.info("Changes: {}", messageBuilder.toString());
}
}
// T extends NeutronObject as 0th type argument. Used by extractFields()
private static final int NEUTRON_OBJECT_CLASS_TYPE_INDEX = 0;
- private static final Logger LOG = LoggerFactory.getLogger(NeutronFirewallRule.class);
+ private static final Logger LOG = LoggerFactory.getLogger(NeutronObject.class);
private static final long serialVersionUID = 1L;
<propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
</configuration>
</plugin>
+ <plugin>
+ <groupId>com.github.spotbugs</groupId>
+ <artifactId>spotbugs-maven-plugin</artifactId>
+ <configuration>
+ <failOnError>true</failOnError>
+ </configuration>
+ </plugin>
</plugins>
</build>
</project>