mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-12-23 16:37:44 +01:00
print all stacktraces when debug
This commit is contained in:
parent
989a2be326
commit
c60755a8c6
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user