diff --git a/.changes/next-release/bugfix-AWSSDKforJavav2-7acbaf0.json b/.changes/next-release/bugfix-AWSSDKforJavav2-7acbaf0.json new file mode 100644 index 000000000000..d53aca0a5777 --- /dev/null +++ b/.changes/next-release/bugfix-AWSSDKforJavav2-7acbaf0.json @@ -0,0 +1,6 @@ +{ + "type": "bugfix", + "category": "AWS SDK for Java v2", + "contributor": "singhbaljit", + "description": "Logs the selected credentials provider at the INFO level so its easy to which credentials the default credentials provider ended up using." +} diff --git a/core/auth/src/main/java/software/amazon/awssdk/auth/credentials/AwsCredentialsProviderChain.java b/core/auth/src/main/java/software/amazon/awssdk/auth/credentials/AwsCredentialsProviderChain.java index 439fcc987406..a592db64cf73 100644 --- a/core/auth/src/main/java/software/amazon/awssdk/auth/credentials/AwsCredentialsProviderChain.java +++ b/core/auth/src/main/java/software/amazon/awssdk/auth/credentials/AwsCredentialsProviderChain.java @@ -108,7 +108,7 @@ public AwsCredentials resolveCredentials() { try { AwsCredentialsIdentity credentials = CompletableFutureUtils.joinLikeSync(provider.resolveIdentity()); - log.debug(() -> "Loading credentials from " + provider); + log.info(() -> "Loading credentials from " + provider); lastUsedProvider = provider; return CredentialUtils.toCredentials(credentials);