Mute the connection reset by peer exception - it's spamilicious for the most part.
This commit is contained in:
parent
ee7c965fe0
commit
f7feec029e
1 changed files with 9 additions and 1 deletions
|
@ -561,9 +561,17 @@ public class NetworkDispatcher extends SimpleChannelInboundHandler<Packet<?>> im
|
||||||
{
|
{
|
||||||
// Stop the epic channel closed spam at close
|
// Stop the epic channel closed spam at close
|
||||||
if (!(cause instanceof ClosedChannelException))
|
if (!(cause instanceof ClosedChannelException))
|
||||||
|
{
|
||||||
|
// Mute the reset by peer exception - it's disconnection noise
|
||||||
|
if (cause.getMessage().contains("Connection reset by peer"))
|
||||||
|
{
|
||||||
|
FMLLog.log(Level.DEBUG, cause, "Muted NetworkDispatcher exception");
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
FMLLog.log(Level.ERROR, cause, "NetworkDispatcher exception");
|
FMLLog.log(Level.ERROR, cause, "NetworkDispatcher exception");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
super.exceptionCaught(ctx, cause);
|
super.exceptionCaught(ctx, cause);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue