HHH-13737 : Add debug logging

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

View File

@ -3532,7 +3532,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 {