diff --git a/CHANGELOG.next.toml b/CHANGELOG.next.toml index 34e3627cff..a1db53d77d 100644 --- a/CHANGELOG.next.toml +++ b/CHANGELOG.next.toml @@ -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" \ No newline at end of file diff --git a/aws/rust-runtime/aws-config/src/meta/credentials/chain.rs b/aws/rust-runtime/aws-config/src/meta/credentials/chain.rs index 229e054f81..542352920a 100644 --- a/aws/rust-runtime/aws-config/src/meta/credentials/chain.rs +++ b/aws/rust-runtime/aws-config/src/meta/credentials/chain.rs @@ -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");