Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/aws/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use serde::{Deserialize, Serialize};
use std::str::FromStr;
use std::sync::Arc;
use std::time::Duration;
use tracing::info;
use tracing::debug;
use url::Url;

/// Default metadata endpoint
Expand Down Expand Up @@ -943,7 +943,7 @@ impl AmazonS3Builder {
} else if self.access_key_id.is_some() || self.secret_access_key.is_some() {
match (self.access_key_id, self.secret_access_key, self.token) {
(Some(key_id), Some(secret_key), token) => {
info!("Using Static credential provider");
debug!("Using Static credential provider");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given these messages are just static strings, I agree that debug is a more appropriate level of logging in my opinion

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i agree with this.

let credential = AwsCredential {
key_id,
secret_key,
Expand All @@ -960,7 +960,7 @@ impl AmazonS3Builder {
std::env::var("AWS_ROLE_ARN"),
) {
// TODO: Replace with `AmazonS3Builder::credentials_from_env`
info!("Using WebIdentity credential provider");
debug!("Using WebIdentity credential provider");

let session_name = std::env::var("AWS_ROLE_SESSION_NAME")
.unwrap_or_else(|_| "WebIdentitySession".to_string());
Expand All @@ -983,7 +983,7 @@ impl AmazonS3Builder {
self.retry_config.clone(),
)) as _
} else if let Some(uri) = self.container_credentials_relative_uri {
info!("Using Task credential provider");
debug!("Using Task credential provider");

let options = self.client_options.clone().with_allow_http(true);

Expand All @@ -998,7 +998,7 @@ impl AmazonS3Builder {
self.container_credentials_full_uri,
self.container_authorization_token_file,
) {
info!("Using EKS Pod Identity credential provider");
debug!("Using EKS Pod Identity credential provider");

let options = self.client_options.clone().with_allow_http(true);

Expand All @@ -1010,7 +1010,7 @@ impl AmazonS3Builder {
cache: Default::default(),
}) as _
} else {
info!("Using Instance credential provider");
debug!("Using Instance credential provider");

let token = InstanceCredentialProvider {
imdsv1_fallback: self.imdsv1_fallback.get()?,
Expand Down