Added paranoid resource leak detection for netty

This commit is contained in:
nathan 2016-03-10 01:25:29 +01:00
parent 76b577365d
commit ce6ae3e29d

View File

@ -31,6 +31,7 @@ import dorkbox.network.connection.EndPoint;
import dorkbox.util.entropy.Entropy;
import dorkbox.util.entropy.SimpleEntropy;
import dorkbox.util.exceptions.InitializationException;
import io.netty.util.ResourceLeakDetector;
import org.slf4j.LoggerFactory;
import java.util.ArrayList;
@ -59,6 +60,8 @@ class BaseTest {
public
BaseTest() {
ResourceLeakDetector.setLevel(ResourceLeakDetector.Level.PARANOID);
System.out.println("---- " + getClass().getSimpleName());
// assume SLF4J is bound to logback in the current environment