You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Chuck Rolke (JIRA)" <ji...@apache.org> on 2012/10/26 15:55:12 UTC
[jira] [Created] (QPID-4398) C++ Broker log statements print
address of message rather than message details
Chuck Rolke created QPID-4398:
---------------------------------
Summary: C++ Broker log statements print address of message rather than message details
Key: QPID-4398
URL: https://issues.apache.org/jira/browse/QPID-4398
Project: Qpid
Issue Type: Bug
Components: C++ Broker
Affects Versions: 0.19
Reporter: Chuck Rolke
In file cpp/src/broker/Queue.cpp (and probably elsewhere) log statements print facts about a message using the construct:
Message* msg = xxx;
QPID_LOG(debug, "The message " << msg << " needs logging");
At run time the log statement prints
2012-10-25 19:34:54 [Broker] critical The message 00E596E0 needs logging
I suspect that this is a detail left over from the 0.10-to-1.0 refactoring.
A reasonable message log would contain at least the message headers and possibly some number of message bytes.
Before the recent refactoring the headers could be obtained with:
*(msg->getProperties<MessageProperties>())
Now that same info needs some property accessors.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org