You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ri...@apache.org on 2010/02/02 13:24:31 UTC

svn commit: r905605 - /qpid/branches/0.5.x-dev/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java

Author: ritchiem
Date: Tue Feb  2 12:24:30 2010
New Revision: 905605

URL: http://svn.apache.org/viewvc?rev=905605&view=rev
Log:
QPID-2370 : Wrapped .debug statements as per review feedback

Modified:
    qpid/branches/0.5.x-dev/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java

Modified: qpid/branches/0.5.x-dev/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java
URL: http://svn.apache.org/viewvc/qpid/branches/0.5.x-dev/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java?rev=905605&r1=905604&r2=905605&view=diff
==============================================================================
--- qpid/branches/0.5.x-dev/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java (original)
+++ qpid/branches/0.5.x-dev/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java Tue Feb  2 12:24:30 2010
@@ -466,9 +466,12 @@
                                                                  // was False
                                                                  if (!_suspendState.getAndSet(true))
                                                                  {
-                                                                     _logger.debug(
-                                                                             "Above threshold(" + _prefetchHighMark
-                                                                             + ") so suspending channel. Current value is " + currentValue);
+                                                                     if (_logger.isDebugEnabled())
+                                                                     {
+                                                                         _logger.debug(
+                                                                                 "Above threshold(" + _prefetchHighMark
+                                                                                 + ") so suspending channel. Current value is " + currentValue);
+                                                                     }
                                                                      new Thread(new SuspenderRunner(_suspendState)).start();
                                                                  }
                                                              }
@@ -484,9 +487,13 @@
                                                                  // was true
                                                                  if (_suspendState.getAndSet(false))
                                                                  {
-                                                                     _logger.debug(
-                                                                             "Below threshold(" + _prefetchLowMark
-                                                                             + ") so unsuspending channel. Current value is " + currentValue);
+                                                                     if (_logger.isDebugEnabled())
+                                                                     {
+
+                                                                         _logger.debug(
+                                                                                 "Below threshold(" + _prefetchLowMark
+                                                                                 + ") so unsuspending channel. Current value is " + currentValue);
+                                                                     }
                                                                     new Thread(new SuspenderRunner(_suspendState)).start();
                                                                  }
                                                              }



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org