diff options
author | Gordon Sim <gsim@apache.org> | 2007-12-17 18:00:26 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2007-12-17 18:00:26 +0000 |
commit | aea3779357db3028a721974d2d39a29d9ded2dd6 (patch) | |
tree | e62ee1a01d3759b45403e1dba86309f68375b9a2 /cpp/src | |
parent | a007bd358f4fff8e82256d686033ca0fd90d9d0c (diff) | |
download | qpid-python-aea3779357db3028a721974d2d39a29d9ded2dd6.tar.gz |
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
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/qpid/client/ConnectionHandler.cpp | 4 |
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 { |