diff options
author | Ted Ross <tross@apache.org> | 2011-02-09 01:10:51 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2011-02-09 01:10:51 +0000 |
commit | 33edbe909fcbb4bd4b8beca378432aa651187da2 (patch) | |
tree | a85bd7a10dc490d44144b86f9d1c054695a689a9 /cpp/src/qmf/ConsoleSession.cpp | |
parent | b38e6b119c0b15050a3ba41d543ddbe17296f490 (diff) | |
download | qpid-python-33edbe909fcbb4bd4b8beca378432aa651187da2.tar.gz |
QPID-3046 - Improved detail in trace log messages.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1068719 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qmf/ConsoleSession.cpp')
-rw-r--r-- | cpp/src/qmf/ConsoleSession.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/qmf/ConsoleSession.cpp b/cpp/src/qmf/ConsoleSession.cpp index bb4458a0b9..f85b618891 100644 --- a/cpp/src/qmf/ConsoleSession.cpp +++ b/cpp/src/qmf/ConsoleSession.cpp @@ -394,6 +394,7 @@ void ConsoleSessionImpl::sendAgentLocate() { Message msg; Variant::Map& headers(msg.getProperties()); + static const string subject("console.request.agent_locate"); headers[protocol::HEADER_KEY_METHOD] = protocol::HEADER_METHOD_REQUEST; headers[protocol::HEADER_KEY_OPCODE] = protocol::HEADER_OPCODE_AGENT_LOCATE_REQUEST; @@ -401,12 +402,12 @@ void ConsoleSessionImpl::sendAgentLocate() msg.setReplyTo(replyAddress); msg.setCorrelationId("agent-locate"); - msg.setSubject("console.request.agent_locate"); + msg.setSubject(subject); encode(agentQuery.getPredicate(), msg); topicSender.send(msg); - QPID_LOG(trace, "SENT AgentLocate to topic"); + QPID_LOG(trace, "SENT AgentLocate to=" << topicSender.getName() << "/" << subject); } |