LOG.trace("Transaction {} prepared candidate {}", transaction, candidate);
return VOID_FUTURE;
} catch (Exception e) {
- LOG.debug("Transaction {} failed to prepare", transaction, e);
+ if(LOG.isTraceEnabled()) {
+ LOG.trace("Transaction {} failed to prepare", transaction, e);
+ } else {
+ LOG.error("Transaction failed to prepare", e);
+ }
return Futures.immediateFailedFuture(e);
}
}
private DataTreeModification dataTreeModification() {
DataTreeModification dataTreeModification = transaction;
if(transaction instanceof PruningDataTreeModification){
- dataTreeModification = ((PruningDataTreeModification) transaction).getDelegate();
+ dataTreeModification = ((PruningDataTreeModification) transaction).getResultingModification();
}
return dataTreeModification;
}
try {
dataTree.getDataTree().commit(candidate);
} catch (Exception e) {
- LOG.error("Transaction {} failed to commit", transaction, e);
+ if(LOG.isTraceEnabled()) {
+ LOG.trace("Transaction {} failed to commit", transaction, e);
+ } else {
+ LOG.error("Transaction failed to commit", e);
+ }
return Futures.immediateFailedFuture(e);
}