Local transaction commits should be logged to FINE level

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=3137365
This commit is contained in:
teo_sarca 2011-03-26 00:22:10 -05:00
parent ecd3d5f8e2
commit a83182ea5b
1 changed files with 9 additions and 1 deletions

View File

@ -279,7 +279,7 @@ public class Trx implements VetoableChangeListener
if (m_connection != null)
{
m_connection.rollback();
log.info ("**** " + m_trxName);
log.log(isLocalTrx(m_trxName) ? Level.FINE : Level.INFO, "**** " + m_trxName);
m_active = false;
return true;
}
@ -636,4 +636,12 @@ public class Trx implements VetoableChangeListener
}
}
private boolean isLocalTrx(String trxName)
{
return trxName == null
|| trxName.startsWith("POSave") // TODO: hardcoded
;
}
} // Trx