Improved logging.
This commit is contained in:
parent
391b2bb481
commit
58b1ec9935
|
@ -71,7 +71,6 @@ public class HttpChannelOverHTTP2 extends HttpChannel
|
||||||
if (!fields.contains(HttpHeader.ACCEPT_ENCODING, "gzip"))
|
if (!fields.contains(HttpHeader.ACCEPT_ENCODING, "gzip"))
|
||||||
fields.add(ACCEPT_ENCODING_GZIP);
|
fields.add(ACCEPT_ENCODING_GZIP);
|
||||||
|
|
||||||
|
|
||||||
// TODO make this a better field for h2 hpack generation
|
// TODO make this a better field for h2 hpack generation
|
||||||
if (getHttpConfiguration().getSendServerVersion())
|
if (getHttpConfiguration().getSendServerVersion())
|
||||||
getResponse().getHttpFields().add(SERVER_VERSION);
|
getResponse().getHttpFields().add(SERVER_VERSION);
|
||||||
|
@ -103,6 +102,9 @@ public class HttpChannelOverHTTP2 extends HttpChannel
|
||||||
BufferUtil.clearToFill(copy);
|
BufferUtil.clearToFill(copy);
|
||||||
copy.put(original).flip();
|
copy.put(original).flip();
|
||||||
|
|
||||||
|
if (LOG.isDebugEnabled())
|
||||||
|
LOG.debug("HTTP2 Request #{}: {} bytes of content", stream.getId(), copy.remaining());
|
||||||
|
|
||||||
onContent(new HttpInput.Content(copy)
|
onContent(new HttpInput.Content(copy)
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
|
@ -118,7 +120,6 @@ public class HttpChannelOverHTTP2 extends HttpChannel
|
||||||
byteBufferPool.release(copy);
|
byteBufferPool.release(copy);
|
||||||
callback.failed(x);
|
callback.failed(x);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (frame.isEndStream())
|
if (frame.isEndStream())
|
||||||
|
@ -126,5 +127,4 @@ public class HttpChannelOverHTTP2 extends HttpChannel
|
||||||
onRequestComplete();
|
onRequestComplete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue