From 5aed22624fc3e76083b230081f545abeb6ff8e8d Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Mon, 17 Sep 2012 09:53:45 +0200 Subject: [PATCH] jetty-9 - HTTP client: better logging for HttpExchange. --- .../main/java/org/eclipse/jetty/client/HttpExchange.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpExchange.java b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpExchange.java index 529ce39c52e..30e27900904 100644 --- a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpExchange.java +++ b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpExchange.java @@ -112,7 +112,7 @@ public class HttpExchange if ((status & completed) == completed) { boolean success = status == 0b1111; - LOG.debug("{} complete success={}", this); + LOG.debug("{} complete success={}", this, success); // Request and response completed if (this == conversation.last()) conversation.complete(); @@ -131,6 +131,9 @@ public class HttpExchange @Override 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())); } }