diff --git a/common/src/main/java/io/netty/util/ResourceLeakDetector.java b/common/src/main/java/io/netty/util/ResourceLeakDetector.java index a6ea748718..6110b46715 100644 --- a/common/src/main/java/io/netty/util/ResourceLeakDetector.java +++ b/common/src/main/java/io/netty/util/ResourceLeakDetector.java @@ -30,6 +30,8 @@ public final class ResourceLeakDetector { 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 {