print all stacktraces when debug

This commit is contained in:
creeper123123321 2022-06-19 09:49:33 -03:00
parent 989a2be326
commit c60755a8c6

View File

@ -66,9 +66,9 @@ public class FabricDecodeHandler extends MessageToMessageDecoder<ByteBuf> {
if (PipelineUtil.containsCause(cause, CancelCodecException.class)) return; if (PipelineUtil.containsCause(cause, CancelCodecException.class)) return;
super.exceptionCaught(ctx, cause); super.exceptionCaught(ctx, cause);
if (PipelineUtil.containsCause(cause, InformativeException.class) if ((PipelineUtil.containsCause(cause, InformativeException.class)
&& (info.getProtocolInfo().getState() != State.HANDSHAKE && info.getProtocolInfo().getState() != State.HANDSHAKE)
|| Via.getManager().debugHandler().enabled())) { || Via.getManager().debugHandler().enabled()) {
cause.printStackTrace(); cause.printStackTrace();
} }
} }