mirror of https://github.com/apache/activemq.git
extended debug information for clarity
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@428467 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
51829f56a1
commit
fd96598b25
|
@ -360,19 +360,19 @@ public abstract class DemandForwardingBridgeSupport implements Bridge {
|
||||||
BrokerId[] path=info.getBrokerPath();
|
BrokerId[] path=info.getBrokerPath();
|
||||||
if((path!=null&&path.length>= networkTTL)){
|
if((path!=null&&path.length>= networkTTL)){
|
||||||
if(log.isDebugEnabled())
|
if(log.isDebugEnabled())
|
||||||
log.debug("Ignoring Subscription " + info + " restricted to " + networkTTL + " network hops only");
|
log.debug(localBrokerName + " Ignoring Subscription " + info + " restricted to " + networkTTL + " network hops only");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(contains(info.getBrokerPath(),localBrokerPath[0])){
|
if(contains(info.getBrokerPath(),localBrokerPath[0])){
|
||||||
// Ignore this consumer as it's a consumer we locally sent to the broker.
|
// Ignore this consumer as it's a consumer we locally sent to the broker.
|
||||||
if(log.isDebugEnabled())
|
if(log.isDebugEnabled())
|
||||||
log.debug("Ignoring sub " + info + " already routed through this broker once");
|
log.debug(localBrokerName + " Ignoring sub " + info + " already routed through this broker once");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!isPermissableDestination(info.getDestination())){
|
if (!isPermissableDestination(info.getDestination())){
|
||||||
//ignore if not in the permited or in the excluded list
|
//ignore if not in the permited or in the excluded list
|
||||||
if(log.isDebugEnabled())
|
if(log.isDebugEnabled())
|
||||||
log.debug("Ignoring sub " + info + " destination " + info.getDestination() + " is not permiited");
|
log.debug(localBrokerName + " Ignoring sub " + info + " destination " + info.getDestination() + " is not permiited");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Update the packet to show where it came from.
|
// Update the packet to show where it came from.
|
||||||
|
@ -382,10 +382,10 @@ public abstract class DemandForwardingBridgeSupport implements Bridge {
|
||||||
if (sub != null){
|
if (sub != null){
|
||||||
addSubscription(sub);
|
addSubscription(sub);
|
||||||
if(log.isDebugEnabled())
|
if(log.isDebugEnabled())
|
||||||
log.debug("Forwarding sub on "+localBroker+" from "+remoteBrokerName+" : "+info);
|
log.debug(localBrokerName + " Forwarding sub on "+localBroker+" from "+remoteBrokerName+" : "+info);
|
||||||
}else {
|
}else {
|
||||||
if(log.isDebugEnabled())
|
if(log.isDebugEnabled())
|
||||||
log.debug("Ignoring sub " + info + " already subscribed to matching destination");
|
log.debug(localBrokerName + " Ignoring sub " + info + " already subscribed to matching destination");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (data.getClass()==DestinationInfo.class){
|
else if (data.getClass()==DestinationInfo.class){
|
||||||
|
@ -480,6 +480,7 @@ public abstract class DemandForwardingBridgeSupport implements Bridge {
|
||||||
log.trace("bridging "+localBrokerName+" -> "+remoteBrokerName+": "+message);
|
log.trace("bridging "+localBrokerName+" -> "+remoteBrokerName+": "+message);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if( !message.isResponseRequired() ) {
|
if( !message.isResponseRequired() ) {
|
||||||
|
|
||||||
// If the message was originally sent using async send, we will preserve that QOS
|
// If the message was originally sent using async send, we will preserve that QOS
|
||||||
|
@ -510,7 +511,9 @@ public abstract class DemandForwardingBridgeSupport implements Bridge {
|
||||||
remoteBroker.asyncRequest(message, callback);
|
remoteBroker.asyncRequest(message, callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}else{
|
||||||
|
if (trace)log.trace("No subscription registered with this network bridge for consumerId " + md.getConsumerId() + " for message: " + md.getMessage());
|
||||||
|
}
|
||||||
}else if(command.isBrokerInfo()){
|
}else if(command.isBrokerInfo()){
|
||||||
serviceLocalBrokerInfo(command);
|
serviceLocalBrokerInfo(command);
|
||||||
}else if(command.isShutdownInfo()){
|
}else if(command.isShutdownInfo()){
|
||||||
|
|
Loading…
Reference in New Issue