geforkt von Mirrors/Velocity
Properly fix debug logging
Dieser Commit ist enthalten in:
Ursprung
b2d9e11217
Commit
6cec09974a
@ -157,12 +157,12 @@ public class MinecraftConnection extends ChannelInboundHandlerAdapter {
|
|||||||
logger.error("{}: read timed out", association);
|
logger.error("{}: read timed out", association);
|
||||||
} else {
|
} else {
|
||||||
boolean isQuietDecoderException = cause instanceof QuietDecoderException;
|
boolean isQuietDecoderException = cause instanceof QuietDecoderException;
|
||||||
boolean willLogQuietDecoderException = MinecraftDecoder.DEBUG || (isQuietDecoderException
|
boolean willLogQuietDecoderException = !isQuietDecoderException
|
||||||
&& !(sessionHandler instanceof LoginSessionHandler)
|
|| (!(sessionHandler instanceof LoginSessionHandler)
|
||||||
&& !(sessionHandler instanceof HandshakeSessionHandler));
|
&& !(sessionHandler instanceof HandshakeSessionHandler));
|
||||||
if (willLogQuietDecoderException) {
|
if (willLogQuietDecoderException) {
|
||||||
logger.error("{}: exception encountered in {}", association, sessionHandler, cause);
|
logger.error("{}: exception encountered in {}", association, sessionHandler, cause);
|
||||||
} else if (isQuietDecoderException) {
|
} else {
|
||||||
knownDisconnect = true;
|
knownDisconnect = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren