style: Checks the log level before logging a FINE message.
This commit is contained in:
parent
a7ff3b8dca
commit
3e01bff25e
@ -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())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user