cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From frankzh...@apache.org
Subject git commit: updated refs/heads/4.2 to 455a9f4
Date Tue, 22 Oct 2013 00:59:50 GMT
Updated Branches:
  refs/heads/4.2 9a2769009 -> 455a9f479


[UCS] don't log user credentials


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/455a9f47
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/455a9f47
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/455a9f47

Branch: refs/heads/4.2
Commit: 455a9f47974c7c25456311c3517408c3604f1263
Parents: 9a27690
Author: Frank.Zhang <frank.zhang@citrix.com>
Authored: Mon Oct 21 17:59:26 2013 -0700
Committer: Frank.Zhang <frank.zhang@citrix.com>
Committed: Mon Oct 21 17:59:26 2013 -0700

----------------------------------------------------------------------
 .../hypervisors/ucs/src/com/cloud/ucs/manager/UcsHttpClient.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/455a9f47/plugins/hypervisors/ucs/src/com/cloud/ucs/manager/UcsHttpClient.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/ucs/src/com/cloud/ucs/manager/UcsHttpClient.java b/plugins/hypervisors/ucs/src/com/cloud/ucs/manager/UcsHttpClient.java
index 5bbec66..c2f6383 100755
--- a/plugins/hypervisors/ucs/src/com/cloud/ucs/manager/UcsHttpClient.java
+++ b/plugins/hypervisors/ucs/src/com/cloud/ucs/manager/UcsHttpClient.java
@@ -55,7 +55,9 @@ public class UcsHttpClient {
         requestHeaders.setContentType(MediaType.APPLICATION_XML);
         requestHeaders.setContentLength(body.length());
         HttpEntity<String> req = new HttpEntity<String>(body, requestHeaders);
-        logger.debug(String.format("UCS call: %s", body));
+        if (!body.contains("aaaLogin")) {
+            logger.debug(String.format("UCS call: %s", body));
+        }
         ResponseEntity<String> rsp = template.exchange(uri, HttpMethod.POST, req, String.class);
         if (rsp.getStatusCode() == org.springframework.http.HttpStatus.OK) {
             return rsp.getBody();


Mime
View raw message