Skip to content

Commit a302827

Browse files
committed
remove trustStorePassword from logs
1 parent 7655769 commit a302827

File tree

1 file changed

+2
-3
lines changed
  • vcloud-director/src/main/java/brooklyn/networking/vclouddirector

1 file changed

+2
-3
lines changed

vcloud-director/src/main/java/brooklyn/networking/vclouddirector/NatService.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,11 +502,10 @@ protected VcloudClient newVcloudClient(String endpoint, String identity, String
502502

503503
// Performing Certificate Validation
504504
if (Strings.isNonBlank(trustStorePassword)) {
505-
LOG.debug("Registering HTTPS scheme using trustStore ='{}' with trustStorePassword = '{}'", trustStore, trustStorePassword);
505+
LOG.debug("Registering HTTPS scheme using trustStore ='{}'", trustStore);
506506
vcloudClient.registerScheme("https", 443, CustomSSLSocketFactory.getInstance(trustStore, trustStorePassword));
507507
} else {
508-
LOG.warn("Registering HTTPS scheme using FakeSSLSocketFactory, as trustStore ='{}' with trustorePassword = '{}' are not valid.",
509-
trustStore, Strings.isBlank(trustStorePassword) ? "empty" : trustStorePassword);
508+
LOG.warn("Registering HTTPS scheme using FakeSSLSocketFactory, as trustStore ='{}' and/or trustStorePassword are not valid.", trustStore);
510509
vcloudClient.registerScheme("https", 443, FakeSSLSocketFactory.getInstance());
511510
}
512511

0 commit comments

Comments
 (0)