You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Construct a Vault driver instance with the provided config settings.
@@ -67,10 +69,10 @@ public class Vault {
67
69
publicVault(finalVaultConfigvaultConfig) {
68
70
this.vaultConfig = vaultConfig;
69
71
if (this.vaultConfig.getNameSpace() != null && !this.vaultConfig.getNameSpace().isEmpty()) {
70
-
System.out.println(String.format("The NameSpace %s has been bound to this Vault instance. Please keep this in mind when running operations.", this.vaultConfig.getNameSpace()));
72
+
logger.info(String.format("The NameSpace %s has been bound to this Vault instance. Please keep this in mind when running operations.", this.vaultConfig.getNameSpace()));
71
73
}
72
74
if (this.vaultConfig.getSecretsEnginePathMap().isEmpty() && this.vaultConfig.getGlobalEngineVersion() == null) {
73
-
System.out.println("Constructing a Vault instance with no provided Engine version, defaulting to version 2.");
75
+
logger.info("Constructing a Vault instance with no provided Engine version, defaulting to version 2.");
74
76
this.vaultConfig.setEngineVersion(2);
75
77
}
76
78
}
@@ -89,7 +91,7 @@ public Vault(final VaultConfig vaultConfig, final Integer engineVersion) {
89
91
vaultConfig.setEngineVersion(engineVersion);
90
92
this.vaultConfig = vaultConfig;
91
93
if (this.vaultConfig.getNameSpace() != null && !this.vaultConfig.getNameSpace().isEmpty()) {
92
-
System.out.println(String.format("The Namespace %s has been bound to this Vault instance. Please keep this in mind when running operations.", this.vaultConfig.getNameSpace()));
94
+
logger.info(String.format("The Namespace %s has been bound to this Vault instance. Please keep this in mind when running operations.", this.vaultConfig.getNameSpace()));
93
95
}
94
96
}
95
97
@@ -110,12 +112,12 @@ public Vault(final VaultConfig vaultConfig, final Boolean useSecretsEnginePathMa
110
112
throwsVaultException {
111
113
this.vaultConfig = vaultConfig;
112
114
if (this.vaultConfig.getNameSpace() != null && !this.vaultConfig.getNameSpace().isEmpty()) {
113
-
System.out.println(String.format("The Namespace %s has been bound to this Vault instance. Please keep this in mind when running operations.", this.vaultConfig.getNameSpace()));
115
+
logger.info(String.format("The Namespace %s has been bound to this Vault instance. Please keep this in mind when running operations.", this.vaultConfig.getNameSpace()));
0 commit comments