qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rob...@apache.org
Subject svn commit: r1153609 - /qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/transport/ServerSessionDelegate.java
Date Wed, 03 Aug 2011 18:51:12 GMT
Author: robbie
Date: Wed Aug  3 18:51:11 2011
New Revision: 1153609

URL: http://svn.apache.org/viewvc?rev=1153609&view=rev
Log:
QPID-2899: log the exception

Modified:
    qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/transport/ServerSessionDelegate.java

Modified: qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/transport/ServerSessionDelegate.java
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/transport/ServerSessionDelegate.java?rev=1153609&r1=1153608&r2=1153609&view=diff
==============================================================================
--- qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/transport/ServerSessionDelegate.java
(original)
+++ qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/transport/ServerSessionDelegate.java
Wed Aug  3 18:51:11 2011
@@ -25,6 +25,7 @@ import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Map;
 
+import org.apache.log4j.Logger;
 import org.apache.qpid.AMQException;
 import org.apache.qpid.AMQUnknownExchangeType;
 import org.apache.qpid.framing.AMQShortString;
@@ -96,6 +97,7 @@ import org.apache.qpid.transport.TxSelec
 
 public class ServerSessionDelegate extends SessionDelegate
 {
+    private static final Logger LOGGER = Logger.getLogger(ServerSessionDelegate.class);
     private final IApplicationRegistry _appRegistry;
 
     public ServerSessionDelegate(IApplicationRegistry appRegistry)
@@ -121,6 +123,7 @@ public class ServerSessionDelegate exten
         }
         catch(RuntimeException e)
         {
+            LOGGER.error("Exception processing command", e);
             exception(session, method, ExecutionErrorCode.INTERNAL_ERROR, "Exception processing
command: " + e);
         }
     }



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


Mime
View raw message