mirror of https://github.com/apache/activemq.git
[no jira] make networkConsumerIds visible in toString of consumerinfo to aid tracing consumers in a network via transport trace logging
(cherry picked from commit 499347542c
)
This commit is contained in:
parent
51b428f49d
commit
cb62fd8388
|
@ -17,6 +17,7 @@
|
|||
package org.apache.activemq.command;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
@ -532,4 +533,11 @@ public class ConsumerInfo extends BaseCommand implements TransientInitializer {
|
|||
lastDeliveredSequenceId = RemoveInfo.LAST_DELIVERED_UNSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
HashMap<String, Object> overrideFields = new HashMap<String, Object>();
|
||||
overrideFields.put("networkConsumerIds", networkConsumerIds);
|
||||
return super.toString(overrideFields);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue