diff --git a/httpclient/src/main/java/org/apache/http/impl/conn/DefaultHttpClientConnectionOperator.java b/httpclient/src/main/java/org/apache/http/impl/conn/DefaultHttpClientConnectionOperator.java index e987dac9f..6bfd16b29 100644 --- a/httpclient/src/main/java/org/apache/http/impl/conn/DefaultHttpClientConnectionOperator.java +++ b/httpclient/src/main/java/org/apache/http/impl/conn/DefaultHttpClientConnectionOperator.java @@ -42,7 +42,6 @@ import org.apache.http.config.Lookup; import org.apache.http.config.SocketConfig; import org.apache.http.conn.ConnectTimeoutException; import org.apache.http.conn.DnsResolver; -import org.apache.http.conn.HttpClientConnectionManager; import org.apache.http.conn.HttpClientConnectionOperator; import org.apache.http.conn.HttpHostConnectException; import org.apache.http.conn.ManagedHttpClientConnection; @@ -65,7 +64,7 @@ public class DefaultHttpClientConnectionOperator implements HttpClientConnection static final String SOCKET_FACTORY_REGISTRY = "http.socket-factory-registry"; - private final Log log = LogFactory.getLog(HttpClientConnectionManager.class); + private final Log log = LogFactory.getLog(getClass()); private final Lookup socketFactoryRegistry; private final SchemePortResolver schemePortResolver; @@ -133,6 +132,9 @@ public class DefaultHttpClientConnectionOperator implements HttpClientConnection sock.setSoLinger(linger > 0, linger); } conn.bind(sock); + if (this.log.isDebugEnabled()) { + this.log.debug("Connection established " + conn); + } return; } catch (final SocketTimeoutException ex) { if (last) {