User: ejort   
  Date: 02/01/04 23:52:20

  Modified:    src/main/org/jboss/mq SpySession.java
  Log:
  Guarded debug logging
  
  Revision  Changes    Path
  1.9       +4 -4      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.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- SpySession.java   2001/12/13 22:22:09     1.8
  +++ SpySession.java   2002/01/05 07:52:20     1.9
  @@ -33,7 +33,7 @@
    * @author     Norbert Lataille ([EMAIL PROTECTED])
    * @author     Hiram Chirino ([EMAIL PROTECTED])
    * @created    August 16, 2001
  - * @version    $Revision: 1.8 $
  + * @version    $Revision: 1.9 $
    */
   public abstract class SpySession
          implements Session, XASession {
  @@ -224,8 +224,7 @@
      public synchronized void close()
         throws JMSException {
   
  -      if( cat.isDebugEnabled() )
  -         cat.debug("Session closing.");
  +      cat.debug("Session closing.");
   
         synchronized ( runLock ) {
   
  @@ -341,7 +340,8 @@
   
      public void deleteTemporaryDestination( SpyDestination dest )
         throws JMSException {
  -      cat.debug( "SpySession: deleteDestination(dest=" + dest.toString() + ")" );
  +      if (cat.isDebugEnabled())
  +         cat.debug( "SpySession: deleteDestination(dest=" + dest.toString() + ")" );
   
         synchronized ( consumers ) {
            HashSet newMap = ( HashSet )consumers.clone();
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to