User: dmaplesden
Date: 01/12/13 14:22:09
Modified: src/main/org/jboss/mq SpySession.java
SpyMessageConsumer.java
Log:
reduce overly verbose logging
Revision Changes Path
1.8 +4 -11 jbossmq/src/main/org/jboss/mq/SpySession.java
Index: SpySession.java
===================================================================
RCS file: /cvsroot/jboss/jbossmq/src/main/org/jboss/mq/SpySession.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- SpySession.java 2001/11/14 01:53:40 1.7
+++ SpySession.java 2001/12/13 22:22:09 1.8
@@ -33,7 +33,7 @@
* @author Norbert Lataille ([EMAIL PROTECTED])
* @author Hiram Chirino ([EMAIL PROTECTED])
* @created August 16, 2001
- * @version $Revision: 1.7 $
+ * @version $Revision: 1.8 $
*/
public abstract class SpySession
implements Session, XASession {
@@ -223,11 +223,10 @@
public synchronized void close()
throws JMSException {
- // allow other threads to process before closing this session
- // Patch submitted by John Ellis (10/29/00)
-// Thread.yield();
- cat.debug("Session closing.");
+ if( cat.isDebugEnabled() )
+ cat.debug("Session closing.");
+
synchronized ( runLock ) {
if ( closed ) {
@@ -275,8 +274,6 @@
throw new IllegalStateException( "The session is not transacted" );
}
- cat.debug( "Session: commit()" );
-
//Don't deliver any more messages while commiting
synchronized ( runLock ) {
@@ -313,8 +310,6 @@
throw new IllegalStateException( "The session is not transacted" );
}
- cat.debug( "Session: rollback()" );
-
// rollback transaction
try {
connection.spyXAResourceManager.endTx( currentTransactionId, true );
@@ -339,8 +334,6 @@
if ( transacted ) {
throw new IllegalStateException( "The session is transacted" );
}
-
- cat.debug( "Session: recover()" );
rollback();
1.15 +2 -2 jbossmq/src/main/org/jboss/mq/SpyMessageConsumer.java
Index: SpyMessageConsumer.java
===================================================================
RCS file: /cvsroot/jboss/jbossmq/src/main/org/jboss/mq/SpyMessageConsumer.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- SpyMessageConsumer.java 2001/12/12 22:08:07 1.14
+++ SpyMessageConsumer.java 2001/12/13 22:22:09 1.15
@@ -23,7 +23,7 @@
* @author Hiram Chirino ([EMAIL PROTECTED])
* @author David Maplesden ([EMAIL PROTECTED])
* @created August 16, 2001
- * @version $Revision: 1.14 $
+ * @version $Revision: 1.15 $
*/
public class SpyMessageConsumer
implements MessageConsumer, SpyConsumer, Runnable
@@ -150,7 +150,7 @@
if ( mes != null ) {
return mes;
}
- cat.debug( "SpyMessageConsumer: receive in messages.wait()" );
+
messages.wait();
}
} catch ( InterruptedException e ) {
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development