Tiny optimization - no need to create a string when there's nothing to log
This commit is contained in:
parent
031c26482c
commit
f0a96e7417
|
@ -97,8 +97,9 @@ public class LoggingHandler implements ChannelUpstreamHandler, ChannelDownstream
|
|||
}
|
||||
|
||||
protected void log(ChannelEvent e) {
|
||||
String msg = e.toString();
|
||||
if (logger.isDebugEnabled()) {
|
||||
String msg = e.toString();
|
||||
|
||||
// Append hex dump if necessary.
|
||||
if (hexDump && e instanceof MessageEvent) {
|
||||
MessageEvent me = (MessageEvent) e;
|
||||
|
|
Loading…
Reference in New Issue
Block a user