diff --git a/src/main/java/io/securecodebox/persistence/defectdojo/http/AuthHeaderFactory.java b/src/main/java/io/securecodebox/persistence/defectdojo/http/AuthHeaderFactory.java index 5101455..b99481b 100644 --- a/src/main/java/io/securecodebox/persistence/defectdojo/http/AuthHeaderFactory.java +++ b/src/main/java/io/securecodebox/persistence/defectdojo/http/AuthHeaderFactory.java @@ -30,11 +30,12 @@ public AuthHeaderFactory(@NonNull Config config) { * @return never {@code null} */ public HttpHeaders generateAuthorizationHeaders() { - HttpHeaders headers = new HttpHeaders(); + final var headers = new HttpHeaders(); + log.debug("Add Authorization header."); headers.set(HttpHeaders.AUTHORIZATION, "Token " + this.config.getApiKey()); if (proxyConfig.isComplete()) { - log.info("Setting Proxy Auth Header..."); + log.debug("Add Proxy-Authorization header."); headers.set(HttpHeaders.PROXY_AUTHORIZATION, "Basic " + encodeProxyCredentials(proxyConfig)); }