geforkt von Mirrors/Velocity
Fix packet decode logging not giving useful errors
See #349 for context
Dieser Commit ist enthalten in:
Ursprung
3beaeb2df7
Commit
b2d9e11217
@ -157,9 +157,9 @@ 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 = isQuietDecoderException
|
boolean willLogQuietDecoderException = MinecraftDecoder.DEBUG || (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 if (isQuietDecoderException) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren