Skip to content

Commit c418598

Browse files
authored
Deprecate VaultContainer#withLogLevel (#6795)
Log level can be configured using env vars. E.g ```java VaultContainer<?> vault = new VaultContainer<>("vault:1.6.1") .withEnv("VAULT_LOG_LEVEL", "info") ```
1 parent ff9b6f2 commit c418598

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/vault/src/main/java/org/testcontainers/vault/VaultContainer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ public SELF withVaultPort(int port) {
154154
*
155155
* @param level the logging level to set for Vault.
156156
* @return this
157+
* @deprecated use {@link #withEnv(String, String)} instead
157158
*/
159+
@Deprecated
158160
public SELF withLogLevel(VaultLogLevel level) {
159161
return withEnv("VAULT_LOG_LEVEL", level.config);
160162
}

0 commit comments

Comments
 (0)