jetty-9 - HTTP client: more logging.
This commit is contained in:
parent
f5d68f0caf
commit
c16778eb48
|
@ -142,12 +142,17 @@ public class HttpSender
|
||||||
header = BufferUtil.EMPTY_BUFFER;
|
header = BufferUtil.EMPTY_BUFFER;
|
||||||
if (chunk == null)
|
if (chunk == null)
|
||||||
chunk = BufferUtil.EMPTY_BUFFER;
|
chunk = BufferUtil.EMPTY_BUFFER;
|
||||||
|
LOG.debug("Writing {} {} {}", header, chunk, content);
|
||||||
endPoint.write(null, callback, header, chunk, content);
|
endPoint.write(null, callback, header, chunk, content);
|
||||||
if (callback.pending())
|
if (callback.pending())
|
||||||
|
{
|
||||||
|
LOG.debug("Write incomplete {} {} {}", header, chunk, content);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (callback.completed())
|
if (callback.completed())
|
||||||
{
|
{
|
||||||
|
LOG.debug("Write complete {} {} {}", header, chunk, content);
|
||||||
if (!committed)
|
if (!committed)
|
||||||
committed(request);
|
committed(request);
|
||||||
|
|
||||||
|
@ -234,7 +239,7 @@ public class HttpSender
|
||||||
// Notify after
|
// Notify after
|
||||||
HttpExchange exchange = connection.getExchange();
|
HttpExchange exchange = connection.getExchange();
|
||||||
Request request = exchange.request();
|
Request request = exchange.request();
|
||||||
LOG.debug("Failed {}", request);
|
LOG.debug("Failed {} {}", request, failure);
|
||||||
|
|
||||||
boolean exchangeCompleted = exchange.requestComplete(false);
|
boolean exchangeCompleted = exchange.requestComplete(false);
|
||||||
if (!exchangeCompleted && !committed)
|
if (!exchangeCompleted && !committed)
|
||||||
|
|
Loading…
Reference in New Issue