summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qmf/ConsoleSession.cpp
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2011-02-09 01:10:51 +0000
committerTed Ross <tross@apache.org>2011-02-09 01:10:51 +0000
commit133433ab3a38e4267c9c46af55d59361afa61e36 (patch)
treebbd32cdef78fa5a17d81fcb45d2127c135af3d3c /qpid/cpp/src/qmf/ConsoleSession.cpp
parent6010eea9e51c08a784add179ef5539d2be64f48f (diff)
downloadqpid-python-133433ab3a38e4267c9c46af55d59361afa61e36.tar.gz
QPID-3046 - Improved detail in trace log messages.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1068719 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qmf/ConsoleSession.cpp')
-rw-r--r--qpid/cpp/src/qmf/ConsoleSession.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/qpid/cpp/src/qmf/ConsoleSession.cpp b/qpid/cpp/src/qmf/ConsoleSession.cpp
index bb4458a0b9..f85b618891 100644
--- a/qpid/cpp/src/qmf/ConsoleSession.cpp
+++ b/qpid/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);
}