This commit is contained in:
Greg Wilkins 2014-06-10 19:05:35 +02:00
parent 630bee5887
commit d024a46327
1 changed files with 6 additions and 1 deletions

View File

@ -31,6 +31,7 @@ import org.eclipse.jetty.http2.frames.SettingsFrame;
import org.eclipse.jetty.http2.frames.WindowUpdateFrame;
import org.eclipse.jetty.http2.hpack.HpackDecoder;
import org.eclipse.jetty.io.ByteBufferPool;
import org.eclipse.jetty.util.TypeUtil;
import org.eclipse.jetty.util.log.Log;
import org.eclipse.jetty.util.log.Logger;
@ -73,7 +74,11 @@ public class Parser
public boolean parse(ByteBuffer buffer)
{
LOG.debug("Parsing {}", buffer);
if (LOG.isDebugEnabled())
{
int l=Math.min(buffer.remaining(),16);
LOG.debug("Parsing "+TypeUtil.toHexString(buffer.array(),buffer.arrayOffset()+buffer.position(),l)+(l<buffer.remaining()?"...":""));
}
while (true)
{