13
0
geforkt von Mirrors/Velocity

Properly fix debug logging

Dieser Commit ist enthalten in:
Andrew Steinborn 2020-08-06 11:09:11 -04:00
Ursprung b2d9e11217
Commit 6cec09974a

Datei anzeigen

@ -157,12 +157,12 @@ public class MinecraftConnection extends ChannelInboundHandlerAdapter {
logger.error("{}: read timed out", association);
} else {
boolean isQuietDecoderException = cause instanceof QuietDecoderException;
boolean willLogQuietDecoderException = MinecraftDecoder.DEBUG || (isQuietDecoderException
&& !(sessionHandler instanceof LoginSessionHandler)
boolean willLogQuietDecoderException = !isQuietDecoderException
|| (!(sessionHandler instanceof LoginSessionHandler)
&& !(sessionHandler instanceof HandshakeSessionHandler));
if (willLogQuietDecoderException) {
logger.error("{}: exception encountered in {}", association, sessionHandler, cause);
} else if (isQuietDecoderException) {
} else {
knownDisconnect = true;
}
}