@Override
public void log(ChannelEvent event)
{
if (event instanceof ExceptionEvent) {
ExceptionEvent exceptionEvent = (ExceptionEvent) event;
SocketAddress remoteAddress = exceptionEvent.getChannel().getRemoteAddress();
log.error("Exception triggered on channel connected to " + remoteAddress,
exceptionEvent.getCause());
}
}