[Minor] Always log original exception if TX fails

This commit is contained in:
Robert von Burg 2016-10-24 10:45:06 +02:00
parent 0e2424bf22
commit f5fc938124
1 changed files with 2 additions and 0 deletions

View File

@ -616,6 +616,7 @@ public abstract class AbstractTransaction implements StrolchTransaction {
} catch (Exception exc) {
logger.error("Failed to roll back after failing to undo commands: " + exc.getMessage(), exc); //$NON-NLS-1$
}
logger.error("Transaction failed due to " + e.getMessage(), e);
handleFailure(start, ex);
}
@ -623,6 +624,7 @@ public abstract class AbstractTransaction implements StrolchTransaction {
rollback();
handleRollback(start);
} catch (Exception ex) {
logger.error("Transaction failed due to " + e.getMessage(), e);
logger.error("Failed to commit transaction and then rollback due to " + ex.getMessage(), ex);
handleFailure(start, e);
}