[jboss-cvs] JBossCache/src/org/jboss/cache/interceptors ...
Manik Surtani
manik at jboss.org
Mon Mar 5 14:54:03 EST 2007
User: msurtani
Date: 07/03/05 14:54:03
Modified: src/org/jboss/cache/interceptors CacheStoreInterceptor.java
Log:
Added more logging
Revision Changes Path
1.46 +5 -2 JBossCache/src/org/jboss/cache/interceptors/CacheStoreInterceptor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CacheStoreInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/interceptors/CacheStoreInterceptor.java,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -b -r1.45 -r1.46
--- CacheStoreInterceptor.java 27 Feb 2007 21:57:36 -0000 1.45
+++ CacheStoreInterceptor.java 5 Mar 2007 19:54:03 -0000 1.46
@@ -27,7 +27,7 @@
* through the CacheLoader, either after each method call (no TXs), or at TX commit.
*
* @author Bela Ban
- * @version $Id: CacheStoreInterceptor.java,v 1.45 2007/02/27 21:57:36 msurtani Exp $
+ * @version $Id: CacheStoreInterceptor.java,v 1.46 2007/03/05 19:54:03 msurtani Exp $
*/
public class CacheStoreInterceptor extends BaseCacheLoaderInterceptor implements CacheStoreInterceptorMBean
{
@@ -351,8 +351,10 @@
modifications = entry.getCacheLoaderModifications();
if (modifications.size() == 0)
{
+ log.trace("Transaction has not logged any modifications!");
return;
}
+ if (log.isTraceEnabled()) log.trace("Cache loader modification list: " + modifications);
List cache_loader_modifications = new ArrayList();
for (Iterator it = modifications.iterator(); it.hasNext();)
{
@@ -384,8 +386,9 @@
}
}
- protected Modification convertMethodCallToModification(MethodCall methodCall) throws Exception
+ private Modification convertMethodCallToModification(MethodCall methodCall) throws Exception
{
+ if (log.isTraceEnabled()) log.trace("Converting method call " + methodCall + " to modification.");
Method method = methodCall.getMethod();
Object[] args;
if (method == null)
More information about the jboss-cvs-commits
mailing list