jetty-9 - HTTP client: better logging for HttpExchange.
This commit is contained in:
parent
4ea5734ab1
commit
5aed22624f
|
@ -112,7 +112,7 @@ public class HttpExchange
|
||||||
if ((status & completed) == completed)
|
if ((status & completed) == completed)
|
||||||
{
|
{
|
||||||
boolean success = status == 0b1111;
|
boolean success = status == 0b1111;
|
||||||
LOG.debug("{} complete success={}", this);
|
LOG.debug("{} complete success={}", this, success);
|
||||||
// Request and response completed
|
// Request and response completed
|
||||||
if (this == conversation.last())
|
if (this == conversation.last())
|
||||||
conversation.complete();
|
conversation.complete();
|
||||||
|
@ -131,6 +131,9 @@ public class HttpExchange
|
||||||
@Override
|
@Override
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
return String.format("%s@%x", HttpExchange.class.getSimpleName(), hashCode());
|
return String.format("%s@%x status=%s",
|
||||||
|
HttpExchange.class.getSimpleName(),
|
||||||
|
hashCode(),
|
||||||
|
Integer.toBinaryString(complete.get()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue