You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2007/12/17 19:00:27 UTC

svn commit: r604947 - /incubator/qpid/trunk/qpid/cpp/src/qpid/client/ConnectionHandler.cpp

Author: gsim
Date: Mon Dec 17 10:00:26 2007
New Revision: 604947

URL: http://svn.apache.org/viewvc?rev=604947&view=rev
Log:
Add log message when broker closes connection


Modified:
    incubator/qpid/trunk/qpid/cpp/src/qpid/client/ConnectionHandler.cpp

Modified: incubator/qpid/trunk/qpid/cpp/src/qpid/client/ConnectionHandler.cpp
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/qpid/client/ConnectionHandler.cpp?rev=604947&r1=604946&r2=604947&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/qpid/client/ConnectionHandler.cpp (original)
+++ incubator/qpid/trunk/qpid/cpp/src/qpid/client/ConnectionHandler.cpp Mon Dec 17 10:00:26 2007
@@ -185,8 +185,10 @@
         if (method->isA<ConnectionCloseBody>()) {
             send(ConnectionCloseOkBody(version));
             setState(CLOSED);
+            ConnectionCloseBody* c=polymorphic_downcast<ConnectionCloseBody*>(method);
+            QPID_LOG(warning, "Broker closed connection: " << c->getReplyCode() 
+                     << ", " << c->getReplyText());
             if (onError) {
-                ConnectionCloseBody* c=polymorphic_downcast<ConnectionCloseBody*>(method);
                 onError(c->getReplyCode(), c->getReplyText());
             }
         } else {