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
// triggered check queue.
//
logger.info("Add peer CandidatePair with new reflexive address to" +
" checkList");
if(triggerPair.getParentComponent().getSelectedPair() == null)
logger.info("Add peer CandidatePair with new reflexive " +
"address to checkList");
triggerPair.setUseCandidateReceived();
parentStream.addToCheckList(triggerPair);
}

View File

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