diff --git a/src/main/java/org/ice4j/ice/harvest/StunCandidateHarvester.java b/src/main/java/org/ice4j/ice/harvest/StunCandidateHarvester.java index 9264944..684f13f 100644 --- a/src/main/java/org/ice4j/ice/harvest/StunCandidateHarvester.java +++ b/src/main/java/org/ice4j/ice/harvest/StunCandidateHarvester.java @@ -237,8 +237,11 @@ public class StunCandidateHarvester @Override public Collection harvest(Component component) { - logger.fine("starting " + component.toShortString() - + " harvest for: " + toString() ); + if (logger.isLoggable(Level.FINE)) + { + logger.fine("starting " + component.toShortString() + + " harvest for: " + toString()); + } stunStack = component.getParentStream().getParentAgent().getStunStack(); for (Candidate cand : component.getLocalCandidates())