From 7268fb7a75e0d439b6b2d43a89edb479819d4076 Mon Sep 17 00:00:00 2001 From: boris Date: Mon, 9 Mar 2015 18:24:19 +0000 Subject: [PATCH] Logs failures to get host candidates. --- src/org/ice4j/ice/Agent.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/org/ice4j/ice/Agent.java b/src/org/ice4j/ice/Agent.java index 6ae2d5b..c8fc848 100644 --- a/src/org/ice4j/ice/Agent.java +++ b/src/org/ice4j/ice/Agent.java @@ -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())