diff options
Diffstat (limited to 'qpid/cpp/src/qmf/ConsoleSession.cpp')
-rw-r--r-- | qpid/cpp/src/qmf/ConsoleSession.cpp | 5 |
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); } |