Skip to content

Commit 369183d

Browse files
authored
chore: Removing unnecessary and potentially confusing credential warning message (#11303)
1 parent b52d06b commit 369183d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/TranslateOptions.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,6 @@ private TranslateOptions(Builder builder) {
161161
} else if (builder.apiKey != null) {
162162
credentials = null;
163163
apiKey = builder.apiKey;
164-
logger.log(
165-
Level.WARNING,
166-
"Ignoring Application Default Credentials {0}: using explicit setting for API key instead.",
167-
ServiceOptions.CREDENTIAL_ENV_NAME);
168164
} else if (credentials != null) { // credentials assigned from ADC in superclass constructor
169165
apiKey = null;
170166
if (getDefaultApiKey() != null) {

0 commit comments

Comments
 (0)