Fix packet decode logging not giving useful errors
See #349 for context
This commit is contained in:
@@ -157,9 +157,9 @@ public class MinecraftConnection extends ChannelInboundHandlerAdapter {
|
||||
logger.error("{}: read timed out", association);
|
||||
} else {
|
||||
boolean isQuietDecoderException = cause instanceof QuietDecoderException;
|
||||
boolean willLogQuietDecoderException = isQuietDecoderException
|
||||
boolean willLogQuietDecoderException = MinecraftDecoder.DEBUG || (isQuietDecoderException
|
||||
&& !(sessionHandler instanceof LoginSessionHandler)
|
||||
&& !(sessionHandler instanceof HandshakeSessionHandler);
|
||||
&& !(sessionHandler instanceof HandshakeSessionHandler));
|
||||
if (willLogQuietDecoderException) {
|
||||
logger.error("{}: exception encountered in {}", association, sessionHandler, cause);
|
||||
} else if (isQuietDecoderException) {
|
||||
|
Reference in New Issue
Block a user