Skip to content

Commit

Permalink
Change detailed logs in CredentialsProviderChain from info to debug (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Kolomiiets authored Jul 27, 2022
1 parent 2670831 commit 0f2fae1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.next.toml
Original file line number Diff line number Diff line change
Expand Up @@ -213,3 +213,9 @@ Add explicit cast during JSON deserialization in case of custom Symbol providers
references = ["smithy-rs#1520"]
meta = { "breaking" = false, "tada" = false, "bug" = false }
author = "crisidev"

[[smithy-rs]]
message = "Change detailed logs in CredentialsProviderChain from info to debug"
references = ["smithy-rs#1578"]
meta = { "breaking" = false, "tada" = false, "bug" = false }
author = "lkts"
4 changes: 2 additions & 2 deletions aws/rust-runtime/aws-config/src/meta/credentials/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ impl CredentialsProviderChain {
let span = tracing::debug_span!("load_credentials", provider = %name);
match provider.provide_credentials().instrument(span).await {
Ok(credentials) => {
tracing::info!(provider = %name, "loaded credentials");
tracing::debug!(provider = %name, "loaded credentials");
return Ok(credentials);
}
Err(CredentialsError::CredentialsNotLoaded { context, .. }) => {
tracing::info!(provider = %name, context = %context, "provider in chain did not provide credentials");
tracing::debug!(provider = %name, context = %context, "provider in chain did not provide credentials");
}
Err(e) => {
tracing::warn!(provider = %name, error = %e, "provider failed to provide credentials");
Expand Down

0 comments on commit 0f2fae1

Please sign in to comment.