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, component,
preferredPort, minPort, maxPort, Transport.UDP); preferredPort, minPort, maxPort, Transport.UDP);
} }
else
{
if (hostHarvesters.isEmpty())
logger.warning("No host harvesters available!");
}
for (CandidateHarvester harvester : hostHarvesters) for (CandidateHarvester harvester : hostHarvesters)
{ {
harvester.harvest(component); harvester.harvest(component);
} }
logger.fine("host candidate count: " + if (component.getLocalCandidateCount() == 0)
component.getLocalCandidateCount()); logger.warning("Failed to gather any host candidates!");
//in case we are not trickling, apply other harvesters here //in case we are not trickling, apply other harvesters here
if(!isTrickling()) if(!isTrickling())