add logging on the size of message received

This commit is contained in:
Shay Banon 2012-10-04 20:33:25 +02:00
parent 8ea019aa82
commit 9122befdfb
1 changed files with 1 additions and 0 deletions

View File

@ -176,6 +176,7 @@ public class BulkUdpService extends AbstractLifecycleComponent<BulkUdpService> {
@Override
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception {
ChannelBuffer buffer = (ChannelBuffer) e.getMessage();
logger.trace("received message size [{}]", buffer.readableBytes());
try {
bulkProcessor.add(new ChannelBufferBytesReference(buffer), false, null, null);
} catch (Exception e1) {