HHH-13737 : Add debug logging

This commit is contained in:
Gail Badner 2019-11-14 13:47:08 -08:00 committed by gbadner
parent c02011ef40
commit 7d8549d8aa
1 changed files with 7 additions and 1 deletions

View File

@ -3348,7 +3348,13 @@ public final class SessionImpl
}
catch ( JDBCException e ) {
if ( accessTransaction().isActive() && accessTransaction().getRollbackOnly() ) {
// assume this is the similar to the WildFly / IronJacamar "feature" described under HHH-12472
// Assume this is the similar to the WildFly / IronJacamar "feature" described under HHH-12472.
// Just log the exception and return null.
if ( log.isDebugEnabled() ) {
log.debug( "JDBCException was thrown for a transaction marked for rollback; " +
"this is probably due to IronJacamar failing fast after " +
"transaction was marked for rollback.", e );
}
return null;
}
else {