From 91b55ded6ace919af6f372fa93d5930d7a14b58b Mon Sep 17 00:00:00 2001 From: Lee Hinman Date: Tue, 15 Dec 2015 08:48:43 -0700 Subject: [PATCH] Trace log REST test headers --- .../elasticsearch/test/rest/client/http/HttpRequestBuilder.java | 1 + 1 file changed, 1 insertion(+) diff --git a/test-framework/src/main/java/org/elasticsearch/test/rest/client/http/HttpRequestBuilder.java b/test-framework/src/main/java/org/elasticsearch/test/rest/client/http/HttpRequestBuilder.java index 34665efa0f1..f6ce416dbff 100644 --- a/test-framework/src/main/java/org/elasticsearch/test/rest/client/http/HttpRequestBuilder.java +++ b/test-framework/src/main/java/org/elasticsearch/test/rest/client/http/HttpRequestBuilder.java @@ -168,6 +168,7 @@ public class HttpRequestBuilder { logger.trace("sending request \n{}", stringBuilder.toString()); } for (Map.Entry entry : this.headers.entrySet()) { + logger.trace("adding header [{} => {}]", entry.getKey(), entry.getValue()); httpUriRequest.addHeader(entry.getKey(), entry.getValue()); } try (CloseableHttpResponse closeableHttpResponse = httpClient.execute(httpUriRequest)) {