Logs failures to get host candidates.

This commit is contained in:
boris 2015-03-09 18:24:19 +00:00
parent 7b21db735f
commit 7268fb7a75

View File

@ -433,14 +433,19 @@ public class Agent
component,
preferredPort, minPort, maxPort, Transport.UDP);
}
else
{
if (hostHarvesters.isEmpty())
logger.warning("No host harvesters available!");
}
for (CandidateHarvester harvester : hostHarvesters)
{
harvester.harvest(component);
}
logger.fine("host candidate count: " +
component.getLocalCandidateCount());
if (component.getLocalCandidateCount() == 0)
logger.warning("Failed to gather any host candidates!");
//in case we are not trickling, apply other harvesters here
if(!isTrickling())