You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2020/04/05 10:50:33 UTC

[httpcomponents-client] 01/02: Minor tweaks to auth execution logging

This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch HTTPCLIENT-2073
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git

commit 9ea79c68c5d1626ed75b37d3a989a9d6abc13274
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Sun Apr 5 12:43:26 2020 +0200

    Minor tweaks to auth execution logging
---
 .../java/org/apache/hc/client5/http/impl/auth/HttpAuthenticator.java    | 1 +
 .../main/java/org/apache/hc/client5/http/impl/classic/ProtocolExec.java | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/HttpAuthenticator.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/HttpAuthenticator.java
index 8bcd124..219c4e8 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/HttpAuthenticator.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/HttpAuthenticator.java
@@ -257,6 +257,7 @@ public final class HttpAuthenticator {
         }
 
         final Queue<AuthScheme> authOptions = new LinkedList<>();
+        this.log.debug("Selecting authentication options");
         for (final AuthScheme authScheme: preferredSchemes) {
             try {
                 final String schemeName = authScheme.getName();
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/ProtocolExec.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/ProtocolExec.java
index 756f9bd..50aee86 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/ProtocolExec.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/ProtocolExec.java
@@ -96,7 +96,7 @@ public final class ProtocolExec implements ExecChainHandler {
         this.httpProcessor = Args.notNull(httpProcessor, "HTTP protocol processor");
         this.targetAuthStrategy = Args.notNull(targetAuthStrategy, "Target authentication strategy");
         this.proxyAuthStrategy = Args.notNull(proxyAuthStrategy, "Proxy authentication strategy");
-        this.authenticator = new HttpAuthenticator(log);
+        this.authenticator = new HttpAuthenticator();
     }
 
     @Override