Method ordering
This commit is contained in:
parent
7b87b1b23c
commit
903fde7704
@ -84,18 +84,6 @@ public class LoggingHandler implements ChannelUpstreamHandler, ChannelDownstream
|
||||
this.hexDump = hexDump;
|
||||
}
|
||||
|
||||
public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e)
|
||||
throws Exception {
|
||||
log(e);
|
||||
ctx.sendUpstream(e);
|
||||
}
|
||||
|
||||
public void handleDownstream(ChannelHandlerContext ctx, ChannelEvent e)
|
||||
throws Exception {
|
||||
log(e);
|
||||
ctx.sendDownstream(e);
|
||||
}
|
||||
|
||||
public InternalLogger getLogger() {
|
||||
return logger;
|
||||
}
|
||||
@ -133,4 +121,16 @@ public class LoggingHandler implements ChannelUpstreamHandler, ChannelDownstream
|
||||
public void log(String msg, Throwable cause) {
|
||||
getLogger().debug(msg, cause);
|
||||
}
|
||||
|
||||
public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e)
|
||||
throws Exception {
|
||||
log(e);
|
||||
ctx.sendUpstream(e);
|
||||
}
|
||||
|
||||
public void handleDownstream(ChannelHandlerContext ctx, ChannelEvent e)
|
||||
throws Exception {
|
||||
log(e);
|
||||
ctx.sendDownstream(e);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user