[jbosscache-commits] JBoss Cache SVN: r6961 - in core/branches/2.2.X/src/main/java/org/jboss/cache: transaction and 1 other directory.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Wed Oct 15 15:59:40 EDT 2008
Author: bstansberry at jboss.com
Date: 2008-10-15 15:59:40 -0400 (Wed, 15 Oct 2008)
New Revision: 6961
Modified:
core/branches/2.2.X/src/main/java/org/jboss/cache/interceptors/BaseRpcInterceptor.java
core/branches/2.2.X/src/main/java/org/jboss/cache/interceptors/TxInterceptor.java
core/branches/2.2.X/src/main/java/org/jboss/cache/transaction/DummyTransaction.java
Log:
[JBCACHE-1428] Remove per-request DEBUG logging
Modified: core/branches/2.2.X/src/main/java/org/jboss/cache/interceptors/BaseRpcInterceptor.java
===================================================================
--- core/branches/2.2.X/src/main/java/org/jboss/cache/interceptors/BaseRpcInterceptor.java 2008-10-15 19:41:25 UTC (rev 6960)
+++ core/branches/2.2.X/src/main/java/org/jboss/cache/interceptors/BaseRpcInterceptor.java 2008-10-15 19:59:40 UTC (rev 6961)
@@ -191,7 +191,7 @@
{
if (ctx.getOptionOverrides() != null && ctx.getOptionOverrides().isCacheModeLocal())
{
- if (log.isDebugEnabled()) log.debug("LOCAL mode forced on invocation. Suppressing clustered events.");
+ if (log.isTraceEnabled()) log.trace("LOCAL mode forced on invocation. Suppressing clustered events.");
return true;
}
return false;
Modified: core/branches/2.2.X/src/main/java/org/jboss/cache/interceptors/TxInterceptor.java
===================================================================
--- core/branches/2.2.X/src/main/java/org/jboss/cache/interceptors/TxInterceptor.java 2008-10-15 19:41:25 UTC (rev 6960)
+++ core/branches/2.2.X/src/main/java/org/jboss/cache/interceptors/TxInterceptor.java 2008-10-15 19:59:40 UTC (rev 6961)
@@ -97,7 +97,7 @@
Object result = null;
// this is a prepare, commit, or rollback.
- if (log.isDebugEnabled()) log.debug("Got gtx from invocation context " + ctx.getGlobalTransaction());
+ if (log.isTraceEnabled()) log.trace("Got gtx from invocation context " + ctx.getGlobalTransaction());
try
{
if (ctx.getGlobalTransaction().isRemote())
@@ -146,7 +146,7 @@
// make sure we set this in the ctx
ctx.setTransaction(ltx);
}
- if (log.isDebugEnabled()) log.debug(" executing commit() with local TX " + ltx + " under global tx " + gtx);
+ if (log.isTraceEnabled()) log.trace(" executing commit() with local TX " + ltx + " under global tx " + gtx);
txManager.commit();
if (getStatisticsEnabled()) commits++;
}
@@ -162,7 +162,7 @@
// this tx has completed. Clean up in the tx table.
txTable.remove(gtx, ltx);
}
- if (log.isDebugEnabled()) log.debug("Finished remote rollback method for " + gtx);
+ if (log.isTraceEnabled()) log.trace("Finished remote rollback method for " + gtx);
}
catch (Throwable throwable)
{
@@ -204,7 +204,7 @@
// make sure we set this in the ctx
ctx.setTransaction(ltx);
}
- if (log.isDebugEnabled()) log.debug("executing with local TX " + ltx + " under global tx " + gtx);
+ if (log.isTraceEnabled()) log.trace("executing with local TX " + ltx + " under global tx " + gtx);
txManager.rollback();
if (getStatisticsEnabled()) rollbacks++;
}
@@ -222,7 +222,7 @@
// this tx has completed. Clean up in the tx table.
txTable.remove(gtx, ltx);
}
- if (log.isDebugEnabled()) log.debug("Finished remote commit/rollback method for " + gtx);
+ if (log.isTraceEnabled()) log.trace("Finished remote commit/rollback method for " + gtx);
}
catch (Throwable throwable)
{
@@ -337,8 +337,8 @@
txTable.put(ltx, gtx);
if (trace) log.trace("Created new tx for gtx " + gtx);
- if (log.isDebugEnabled())
- log.debug("Started new local tx as result of remote prepare: local tx=" + ltx + " (status=" + ltx.getStatus() + "), gtx=" + gtx);
+ if (log.isTraceEnabled())
+ log.trace("Started new local tx as result of remote prepare: local tx=" + ltx + " (status=" + ltx.getStatus() + "), gtx=" + gtx);
}
else
{
@@ -366,7 +366,7 @@
if (entry == null)
{
// create a new transaction entry
- if (log.isDebugEnabled()) log.debug("creating new tx entry");
+ if (log.isTraceEnabled()) log.trace("creating new tx entry");
entry = createNewTransactionEntry(ltx);
txTable.put(gtx, entry);
}
@@ -442,7 +442,7 @@
txManager.suspend();// suspends ltx - could be null
// resume whatever else we had going.
if (currentTx != null) txManager.resume(currentTx);
- if (log.isDebugEnabled()) log.debug("Finished remote prepare " + gtx);
+ if (log.isTraceEnabled()) log.trace("Finished remote prepare " + gtx);
}
return retval;
@@ -545,7 +545,7 @@
ctx.setCommand(originalCommand);
ctx.setMethodCall(null);
}
- if (log.isDebugEnabled()) log.debug("Finished local commit/rollback method for " + gtx);
+ if (log.isTraceEnabled()) log.trace("Finished local commit/rollback method for " + gtx);
return result;
}
@@ -969,17 +969,17 @@
{
case Status.STATUS_COMMITTED:
boolean onePhaseCommit = isOnePhaseCommit();
- if (log.isDebugEnabled()) log.debug("Running commit phase. One phase? " + onePhaseCommit);
+ if (log.isTraceEnabled()) log.trace("Running commit phase. One phase? " + onePhaseCommit);
runCommitPhase(ctx, gtx, modifications, onePhaseCommit);
- log.debug("Finished commit phase");
+ log.trace("Finished commit phase");
break;
case Status.STATUS_UNKNOWN:
log.warn("Received JTA STATUS_UNKNOWN in afterCompletion()! XA resources may not be in sync. The app should manually clean up resources at this point.");
case Status.STATUS_MARKED_ROLLBACK:
case Status.STATUS_ROLLEDBACK:
- log.debug("Running rollback phase");
+ log.trace("Running rollback phase");
runRollbackPhase(ctx, gtx, tx, modifications);
- log.debug("Finished rollback phase");
+ log.trace("Finished rollback phase");
break;
default:
Modified: core/branches/2.2.X/src/main/java/org/jboss/cache/transaction/DummyTransaction.java
===================================================================
--- core/branches/2.2.X/src/main/java/org/jboss/cache/transaction/DummyTransaction.java 2008-10-15 19:41:25 UTC (rev 6960)
+++ core/branches/2.2.X/src/main/java/org/jboss/cache/transaction/DummyTransaction.java 2008-10-15 19:59:40 UTC (rev 6961)
@@ -234,9 +234,9 @@
throw new IllegalStateException("illegal status: " + status + " tx=" + this);
}
- if (log.isDebugEnabled())
+ if (log.isTraceEnabled())
{
- log.debug("registering synchronization handler " + sync);
+ log.trace("registering synchronization handler " + sync);
}
participants.add(sync);
@@ -253,9 +253,9 @@
for (Synchronization s : participants)
{
- if (log.isDebugEnabled())
+ if (log.isTraceEnabled())
{
- log.debug("processing beforeCompletion for " + s);
+ log.trace("processing beforeCompletion for " + s);
}
try
{
@@ -274,9 +274,9 @@
{
for (Synchronization s : participants)
{
- if (log.isDebugEnabled())
+ if (log.isTraceEnabled())
{
- log.debug("processing afterCompletion for " + s);
+ log.trace("processing afterCompletion for " + s);
}
try
{
More information about the jbosscache-commits
mailing list