Reduces logs output when ICE is completed.

This commit is contained in:
seb 2011-10-28 08:09:49 +00:00
parent 63915fab36
commit a9c1582deb
2 changed files with 9 additions and 5 deletions

View File

@ -1414,8 +1414,9 @@ public class Agent
// Its state is set to Waiting [and it] is enqueued into the // Its state is set to Waiting [and it] is enqueued into the
// triggered check queue. // triggered check queue.
// //
logger.info("Add peer CandidatePair with new reflexive address to" + if(triggerPair.getParentComponent().getSelectedPair() == null)
" checkList"); logger.info("Add peer CandidatePair with new reflexive " +
"address to checkList");
triggerPair.setUseCandidateReceived(); triggerPair.setUseCandidateReceived();
parentStream.addToCheckList(triggerPair); parentStream.addToCheckList(triggerPair);
} }

View File

@ -596,6 +596,7 @@ class ConnectivityCheckClient
checkedPair.getLocalCandidate().getUfrag()); checkedPair.getLocalCandidate().getUfrag());
} }
if(checkedPair.getParentComponent().getSelectedPair() == null)
logger.info("Receive a peer-reflexive candidate: " + logger.info("Receive a peer-reflexive candidate: " +
peerReflexiveCandidate.getTransportAddress()); peerReflexiveCandidate.getTransportAddress());
} }
@ -624,11 +625,13 @@ class ConnectivityCheckClient
//The agent sets the state of the pair that *generated* the check to //The agent sets the state of the pair that *generated* the check to
//Succeeded. Note that, the pair which *generated* the check may be //Succeeded. Note that, the pair which *generated* the check may be
//different than the valid pair constructed above //different than the valid pair constructed above
if(checkedPair.getParentComponent().getSelectedPair() == null)
logger.info("Pair succeeded: " + checkedPair.toShortString()); logger.info("Pair succeeded: " + checkedPair.toShortString());
checkedPair.setStateSucceeded(); checkedPair.setStateSucceeded();
if(! validPair.isValid()) if(! validPair.isValid())
{ {
if(validPair.getParentComponent().getSelectedPair() == null)
logger.info("Pair validated: " + validPair.toShortString()); logger.info("Pair validated: " + validPair.toShortString());
parentAgent.validatePair(validPair); parentAgent.validatePair(validPair);
} }