You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Balazs Torma (JIRA)" <ji...@apache.org> on 2019/08/12 21:47:00 UTC
[jira] [Commented] (AMQ-7273) Message properties (the propery map)
do not get traced
[ https://issues.apache.org/jira/browse/AMQ-7273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16905609#comment-16905609 ]
Balazs Torma commented on AMQ-7273:
-----------------------------------
I found that tracing in ActiveMQSession
{code:java}
LOG.trace(getSessionId() + " sending message: " + msg);
{code}
did not print the properties. But now I did a second test and it worked. Must have overseen something, sorry for the false alarm.
Nevertheless, I would rename that getProperties() method if it is not used to access properties, its kind of misleading like this.
> Message properties (the propery map) do not get traced
> ------------------------------------------------------
>
> Key: AMQ-7273
> URL: https://issues.apache.org/jira/browse/AMQ-7273
> Project: ActiveMQ
> Issue Type: Bug
> Components: Broker
> Affects Versions: 5.15.9
> Reporter: Balazs Torma
> Priority: Minor
>
> in Message.java
> [https://github.com/apache/activemq/blob/master/activemq-client/src/main/java/org/apache/activemq/command/Message.java]
>
> {code:java}
> @Override public String toString(Map<String, Object>overrideFields) {
> try {
> getProperties();
> } catch (IOException e) {
> }
> return super.toString(overrideFields);
> }
> {code}
>
> the toString method igores the property map.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)