Skip to content

Commit

Permalink
add logging on the size of message received
Browse files Browse the repository at this point in the history
  • Loading branch information
kimchy committed Oct 4, 2012
1 parent 8ea019a commit 9122bef
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ class Handler extends SimpleChannelUpstreamHandler {
@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) {
Expand Down

0 comments on commit 9122bef

Please sign in to comment.