Heartstopper Commit
Enabled every catch block in the project to log parsed exceptions.
This commit is contained in:
@@ -61,6 +61,7 @@ public class MapleServerHandler extends IoHandlerAdapter {
|
||||
@Override
|
||||
public void exceptionCaught(IoSession session, Throwable cause) throws Exception {
|
||||
System.out.println("disconnect by exception");
|
||||
cause.printStackTrace();
|
||||
|
||||
if (cause instanceof IOException || cause instanceof ClassCastException) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user