diff --git a/activemq-client/src/main/java/org/apache/activemq/command/ConsumerInfo.java b/activemq-client/src/main/java/org/apache/activemq/command/ConsumerInfo.java index 5ccafab3a0..eec3c5cbd0 100644 --- a/activemq-client/src/main/java/org/apache/activemq/command/ConsumerInfo.java +++ b/activemq-client/src/main/java/org/apache/activemq/command/ConsumerInfo.java @@ -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 overrideFields = new HashMap(); + overrideFields.put("networkConsumerIds", networkConsumerIds); + return super.toString(overrideFields); + } + }