style: Checks the log level before logging a FINE message.

This commit is contained in:
Boris Grozev 2016-11-14 17:03:30 -06:00
parent a7ff3b8dca
commit 3e01bff25e

View File

@ -236,9 +236,12 @@ public class StunCandidateHarvester
*/ */
@Override @Override
public Collection<LocalCandidate> harvest(Component component) public Collection<LocalCandidate> harvest(Component component)
{
if (logger.isLoggable(Level.FINE))
{ {
logger.fine("starting " + component.toShortString() logger.fine("starting " + component.toShortString()
+ " harvest for: " + toString()); + " harvest for: " + toString());
}
stunStack = component.getParentStream().getParentAgent().getStunStack(); stunStack = component.getParentStream().getParentAgent().getStunStack();
for (Candidate<?> cand : component.getLocalCandidates()) for (Candidate<?> cand : component.getLocalCandidates())