From: Juergen H. <jho...@us...> - 2008-10-15 12:00:11
|
Update of /cvsroot/springframework/spring/src/org/springframework/transaction/support In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv9532/src/org/springframework/transaction/support Modified Files: TransactionSynchronizationManager.java Log Message: TransactionSynchronizationManager interaction gets logged at trace level only (minimizing debug log per transaction) Index: TransactionSynchronizationManager.java =================================================================== RCS file: /cvsroot/springframework/spring/src/org/springframework/transaction/support/TransactionSynchronizationManager.java,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** TransactionSynchronizationManager.java 6 May 2008 09:16:47 -0000 1.36 --- TransactionSynchronizationManager.java 15 Oct 2008 12:00:04 -0000 1.37 *************** *** 139,144 **** Object actualKey = TransactionSynchronizationUtils.unwrapResourceIfNecessary(key); Object value = doGetResource(actualKey); ! if (value != null && logger.isDebugEnabled()) { ! logger.debug("Retrieved value [" + value + "] for key [" + actualKey + "] bound to thread [" + Thread.currentThread().getName() + "]"); } --- 139,144 ---- Object actualKey = TransactionSynchronizationUtils.unwrapResourceIfNecessary(key); Object value = doGetResource(actualKey); ! if (value != null && logger.isTraceEnabled()) { ! logger.trace("Retrieved value [" + value + "] for key [" + actualKey + "] bound to thread [" + Thread.currentThread().getName() + "]"); } *************** *** 183,188 **** actualKey + "] bound to thread [" + Thread.currentThread().getName() + "]"); } ! if (logger.isDebugEnabled()) { ! logger.debug("Bound value [" + value + "] for key [" + actualKey + "] to thread [" + Thread.currentThread().getName() + "]"); } --- 183,188 ---- actualKey + "] bound to thread [" + Thread.currentThread().getName() + "]"); } ! if (logger.isTraceEnabled()) { ! logger.trace("Bound value [" + value + "] for key [" + actualKey + "] to thread [" + Thread.currentThread().getName() + "]"); } *************** *** 229,234 **** resources.set(null); } ! if (value != null && logger.isDebugEnabled()) { ! logger.debug("Removed value [" + value + "] for key [" + actualKey + "] from thread [" + Thread.currentThread().getName() + "]"); } --- 229,234 ---- resources.set(null); } ! if (value != null && logger.isTraceEnabled()) { ! logger.trace("Removed value [" + value + "] for key [" + actualKey + "] from thread [" + Thread.currentThread().getName() + "]"); } *************** *** 259,263 **** throw new IllegalStateException("Cannot activate transaction synchronization - already active"); } ! logger.debug("Initializing transaction synchronization"); synchronizations.set(new LinkedList()); } --- 259,263 ---- throw new IllegalStateException("Cannot activate transaction synchronization - already active"); } ! logger.trace("Initializing transaction synchronization"); synchronizations.set(new LinkedList()); } *************** *** 313,317 **** throw new IllegalStateException("Cannot deactivate transaction synchronization - not active"); } ! logger.debug("Clearing transaction synchronization"); synchronizations.set(null); } --- 313,317 ---- throw new IllegalStateException("Cannot deactivate transaction synchronization - not active"); } ! logger.trace("Clearing transaction synchronization"); synchronizations.set(null); } |