summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/ConnectionHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/client/ConnectionHandler.cpp')
-rw-r--r--cpp/src/qpid/client/ConnectionHandler.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/ConnectionHandler.cpp b/cpp/src/qpid/client/ConnectionHandler.cpp
index df84a98811..6a07548378 100644
--- a/cpp/src/qpid/client/ConnectionHandler.cpp
+++ b/cpp/src/qpid/client/ConnectionHandler.cpp
@@ -185,8 +185,10 @@ void ConnectionHandler::handle(AMQMethodBody* method)
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 {