Removed if*-methods and improved performance for arg-less logging

This commit is contained in:
Viktor Klang 2010-08-09 11:36:56 +02:00
parent d41f64df2f
commit 6f42eee608
6 changed files with 72 additions and 63 deletions

View file

@ -120,7 +120,7 @@ class LocalStm extends TransactionManagement with Logging {
def call(mtx: MultiverseTransaction): T = {
factory.addHooks
val result = body
log.ifTrace("Committing local transaction [" + mtx + "]")
log.trace("Committing local transaction [" + mtx + "]")
result
}
})
@ -155,7 +155,7 @@ class GlobalStm extends TransactionManagement with Logging {
factory.addHooks
val result = body
val txSet = getTransactionSetInScope
log.ifTrace("Committing global transaction [" + mtx + "]\n\tand joining transaction set [" + txSet + "]")
log.trace("Committing global transaction [" + mtx + "]\n\tand joining transaction set [" + txSet + "]")
try {
txSet.tryJoinCommit(
mtx,