Dump only first 16 bytes of messages in debug mode
authorJeff MAURY <jeffmaury@apache.org>
Tue, 9 Dec 2014 18:20:29 +0000 (19:20 +0100)
committerJeff MAURY <jeffmaury@apache.org>
Tue, 9 Dec 2014 18:20:29 +0000 (19:20 +0100)
core/src/main/java/org/apache/mina/session/DefaultWriteRequest.java

index dc41b2d..3269efd 100644 (file)
@@ -112,7 +112,7 @@ public class DefaultWriteRequest implements WriteRequest {
             sb.append("Original message : '");
 
             if (originalMessage instanceof ByteBuffer) {
-                sb.append(ByteBufferDumper.dump((ByteBuffer) originalMessage));
+                sb.append(ByteBufferDumper.dump((ByteBuffer) originalMessage, 16, false));
             } else {
                 sb.append(originalMessage);
             }