From 369183d721f8c55682111f5face8eaa2dd33a222 Mon Sep 17 00:00:00 2001 From: ldetmer <1771267+ldetmer@users.noreply.github.com> Date: Fri, 22 Nov 2024 17:27:53 +0000 Subject: [PATCH] chore: Removing unnecessary and potentially confusing credential warning message (#11303) --- .../java/com/google/cloud/translate/TranslateOptions.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/TranslateOptions.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/TranslateOptions.java index 416fc9f2a38f..439470add1d6 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/TranslateOptions.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/TranslateOptions.java @@ -161,10 +161,6 @@ private TranslateOptions(Builder builder) { } else if (builder.apiKey != null) { credentials = null; apiKey = builder.apiKey; - logger.log( - Level.WARNING, - "Ignoring Application Default Credentials {0}: using explicit setting for API key instead.", - ServiceOptions.CREDENTIAL_ENV_NAME); } else if (credentials != null) { // credentials assigned from ADC in superclass constructor apiKey = null; if (getDefaultApiKey() != null) {