Package org.jboss.netty.util
Class DebugUtil
java.lang.Object
org.jboss.netty.util.DebugUtil
Determines if Netty is running in a debug mode or not. Please note that
this is not a Java debug mode. You can enable Netty debug mode by
specifying the
"org.jboss.netty.debug"
system property (e.g.
java -Dorg.jboss.netty.debug ...
)
If debug mode is disabled (default), the stack trace of the exceptions are compressed to help debugging a user application.
If debug mode is enabled, the stack trace of the exceptions raised in
ChannelPipeline
or ChannelSink
are retained as it is to help
debugging Netty.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Returnstrue
if and only if Netty debug mode is enabled.
-
Field Details
-
DEBUG_ENABLED
private static final boolean DEBUG_ENABLED
-
-
Constructor Details
-
DebugUtil
private DebugUtil()
-
-
Method Details
-
isDebugEnabled
public static boolean isDebugEnabled()Returnstrue
if and only if Netty debug mode is enabled.
-