From aea3779357db3028a721974d2d39a29d9ded2dd6 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 17 Dec 2007 18:00:26 +0000 Subject: Add log message when broker closes connection git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@604947 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/client/ConnectionHandler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpp/src') 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()) { send(ConnectionCloseOkBody(version)); setState(CLOSED); + ConnectionCloseBody* c=polymorphic_downcast(method); + QPID_LOG(warning, "Broker closed connection: " << c->getReplyCode() + << ", " << c->getReplyText()); if (onError) { - ConnectionCloseBody* c=polymorphic_downcast(method); onError(c->getReplyCode(), c->getReplyText()); } } else { -- cgit v1.2.1