Add some info logging so you can check to see if the discovery agent is generating duplicate onServiceAdd events

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@643908 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2008-04-02 13:56:26 +00:00
parent c92b11bc54
commit 11e742f003
1 changed files with 5 additions and 1 deletions

View File

@ -73,7 +73,11 @@ public class DiscoveryNetworkConnector extends NetworkConnector implements Disco
return;
}
// Should we try to connect to that URI?
if (bridges.containsKey(uri) || localURI.equals(uri) || (connectionFilter != null && !connectionFilter.connectTo(uri))) {
if( bridges.containsKey(uri) ) {
LOG.debug("Discovery agent generated a duplicate onServiceAdd event for: "+uri );
return;
}
if ( localURI.equals(uri) || (connectionFilter != null && !connectionFilter.connectTo(uri))) {
return;
}
URI connectUri = uri;