Skip to content

Commit

Permalink
Log selected credentials provider at INFO level
Browse files Browse the repository at this point in the history
Logs the selected credentials provider at the INFO level so its easy to which credentials the default credentials provider ended up using.
  • Loading branch information
singhbaljit committed Oct 24, 2023
1 parent 04dffd7 commit d4102d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/next-release/bugfix-AWSSDKforJavav2-7acbaf0.json
Original file line number Diff line number Diff line change
@@ -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."
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d4102d4

Please sign in to comment.