Method ordering
This commit is contained in:
parent
903fde7704
commit
7452e139c1
@ -88,6 +88,10 @@ public class LoggingHandler implements ChannelUpstreamHandler, ChannelDownstream
|
||||
return logger;
|
||||
}
|
||||
|
||||
public boolean isLogEnabled(@SuppressWarnings("unused") ChannelEvent e) {
|
||||
return getLogger().isDebugEnabled();
|
||||
}
|
||||
|
||||
public void log(ChannelEvent e) {
|
||||
if (isLogEnabled(e)) {
|
||||
String msg = e.toString();
|
||||
@ -110,10 +114,6 @@ public class LoggingHandler implements ChannelUpstreamHandler, ChannelDownstream
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isLogEnabled(@SuppressWarnings("unused") ChannelEvent e) {
|
||||
return getLogger().isDebugEnabled();
|
||||
}
|
||||
|
||||
public void log(String msg) {
|
||||
getLogger().debug(msg);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user