Add ResourceLeakDetector.ENABLED
.. to provide a way to check if resource leak detection was enabled programmatically.
This commit is contained in:
parent
e9c6406819
commit
7234a00f0d
@ -30,6 +30,8 @@ public final class ResourceLeakDetector<T> {
|
||||
|
||||
private static final boolean DISABLED = SystemPropertyUtil.getBoolean("io.netty.noResourceLeakDetection", false);
|
||||
|
||||
public static final boolean ENABLED = !DISABLED;
|
||||
|
||||
private static final InternalLogger logger = InternalLoggerFactory.getInstance(ResourceLeakDetector.class);
|
||||
|
||||
static {
|
||||
|
Loading…
Reference in New Issue
Block a user