Suppress duplicate warning message printed when a message reaches at the end of pipeline

This commit is contained in:
Trustin Lee 2013-06-13 13:23:52 +09:00
parent 175526b6bd
commit f178b8d421

View File

@ -973,9 +973,11 @@ final class DefaultChannelPipeline implements ChannelPipeline {
ByteBufUtil.release(m); ByteBufUtil.release(m);
} }
logger.warn( if (length != 1) {
"Discarded {} inbound message(s) that reached at the tail of the pipeline. " + logger.warn(
"Please check your pipeline configuration.", length); "Discarded {} inbound message(s) that reached at the tail of the pipeline. " +
"Please check your pipeline configuration.", length);
}
} }
} }