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

@ -237,8 +237,11 @@ public class StunCandidateHarvester
@Override
public Collection<LocalCandidate> 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())