brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From geom...@apache.org
Subject [1/2] brooklyn-server git commit: Reduce logging for Vault external config supplier
Date Mon, 24 Jul 2017 08:48:04 GMT
Repository: brooklyn-server
Updated Branches:
  refs/heads/master 34efce103 -> 04bdb7590


Reduce logging for Vault external config supplier


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/6a88be55
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/6a88be55
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/6a88be55

Branch: refs/heads/master
Commit: 6a88be55a0eb484378507084909ea2b3ca879eac
Parents: 34efce1
Author: Valentin Aitken <bostko@gmail.com>
Authored: Sat Jul 22 16:58:04 2017 +0300
Committer: Valentin Aitken <bostko@gmail.com>
Committed: Sat Jul 22 16:58:04 2017 +0300

----------------------------------------------------------------------
 .../config/external/vault/VaultExternalConfigSupplier.java  | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/6a88be55/core/src/main/java/org/apache/brooklyn/core/config/external/vault/VaultExternalConfigSupplier.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/brooklyn/core/config/external/vault/VaultExternalConfigSupplier.java
b/core/src/main/java/org/apache/brooklyn/core/config/external/vault/VaultExternalConfigSupplier.java
index f58dbc5..e642813 100644
--- a/core/src/main/java/org/apache/brooklyn/core/config/external/vault/VaultExternalConfigSupplier.java
+++ b/core/src/main/java/org/apache/brooklyn/core/config/external/vault/VaultExternalConfigSupplier.java
@@ -92,13 +92,12 @@ public abstract class VaultExternalConfigSupplier extends AbstractExternalConfig
     protected JsonObject apiGet(String path, ImmutableMap<String, String> headers)
{
         try {
             String uri = Urls.mergePaths(endpoint, path);
-            LOG.debug("Vault request - GET: {}", uri);
-            LOG.debug("Vault request - headers: {}", headers.toString());
+            LOG.trace("Vault request - GET: {}", uri);
+            LOG.trace("Vault request - headers: {}", headers.toString());
             HttpToolResponse response = HttpTool.httpGet(httpClient, Urls.toUri(uri), headers);
-            LOG.debug("Vault response - code: {} {}", new Object[]{Integer.toString(response.getResponseCode()),
response.getReasonPhrase()});
-            LOG.debug("Vault response - headers: {}", response.getHeaderLists().toString());
+            LOG.trace("Vault response - code: {} {}", new Object[]{Integer.toString(response.getResponseCode()),
response.getReasonPhrase()});
+            LOG.trace("Vault response - headers: {}", response.getHeaderLists().toString());
             String responseBody = new String(response.getContent(), CHARSET_NAME);
-            LOG.debug("Vault response - body: {}", responseBody);
             if (HttpTool.isStatusCodeHealthy(response.getResponseCode())) {
                 return gson.fromJson(responseBody, JsonObject.class);
             } else {


Mime
View raw message