You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2010/09/01 15:46:04 UTC

svn commit: r991536 - /activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ServerSessionImpl.java

Author: gtully
Date: Wed Sep  1 13:46:03 2010
New Revision: 991536

URL: http://svn.apache.org/viewvc?rev=991536&view=rev
Log:
resolve: https://issues.apache.org/activemq/browse/AMQ-2892 - apply suggested fix

Modified:
    activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ServerSessionImpl.java

Modified: activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ServerSessionImpl.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ServerSessionImpl.java?rev=991536&r1=991535&r2=991536&view=diff
==============================================================================
--- activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ServerSessionImpl.java (original)
+++ activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ServerSessionImpl.java Wed Sep  1 13:46:03 2010
@@ -173,10 +173,10 @@ public class ServerSessionImpl implement
                 }
             } catch (Throwable e) {
                 stale = true;
-                if ( log.isInfoEnabled() ) {
+                if ( log.isDebugEnabled() ) {
+                    log.debug("Endpoint failed to process message.", e);
+                } else if ( log.isInfoEnabled() ) {
                     log.info("Endpoint failed to process message. Reason: " + e.getMessage());                    
-                } else if ( log.isDebugEnabled() ) {
-                log.debug("Endpoint failed to process message.", e);
                 }
             } finally {
                 InboundContextSupport.unregister(this);