activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r509717 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQSession.java
Date Tue, 20 Feb 2007 19:25:31 GMT
Author: rajdavies
Date: Tue Feb 20 11:25:30 2007
New Revision: 509717

URL: http://svn.apache.org/viewvc?view=rev&rev=509717
Log:
small op

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQSession.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQSession.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQSession.java?view=diff&rev=509717&r1=509716&r2=509717
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQSession.java (original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQSession.java Tue
Feb 20 11:25:30 2007
@@ -199,6 +199,7 @@
     protected boolean closed;
     protected boolean asyncDispatch;
     protected boolean sessionAsyncDispatch;
+    protected final boolean debug;
     protected Object sendMutex = new Object();
 
     /**
@@ -216,7 +217,7 @@
      */
     protected ActiveMQSession(ActiveMQConnection connection, SessionId sessionId, int acknowledgeMode,
boolean asyncDispatch,boolean sessionAsyncDispatch)
             throws JMSException {
-
+        this.debug = log.isDebugEnabled();
         this.connection = connection;
         this.acknowledgementMode = acknowledgeMode;
         this.asyncDispatch=asyncDispatch;
@@ -1539,7 +1540,7 @@
 			msg.setConnection(connection);
 			msg.onSend();
 			msg.setProducerId(msg.getMessageId().getProducerId());
-			if(log.isDebugEnabled()){
+			if(this.debug){
 				log.debug("Sending message: "+msg);
 			}
 			if(!msg.isPersistent()||connection.isUseAsyncSend()||txid!=null){



Mime
View raw message