@@ -36,7 +36,7 @@ use serde::{Deserialize, Serialize};
3636use std:: str:: FromStr ;
3737use std:: sync:: Arc ;
3838use std:: time:: Duration ;
39- use tracing:: info ;
39+ use tracing:: debug ;
4040use url:: Url ;
4141
4242/// Default metadata endpoint
@@ -943,7 +943,7 @@ impl AmazonS3Builder {
943943 } else if self . access_key_id . is_some ( ) || self . secret_access_key . is_some ( ) {
944944 match ( self . access_key_id , self . secret_access_key , self . token ) {
945945 ( Some ( key_id) , Some ( secret_key) , token) => {
946- info ! ( "Using Static credential provider" ) ;
946+ debug ! ( "Using Static credential provider" ) ;
947947 let credential = AwsCredential {
948948 key_id,
949949 secret_key,
@@ -960,7 +960,7 @@ impl AmazonS3Builder {
960960 std:: env:: var ( "AWS_ROLE_ARN" ) ,
961961 ) {
962962 // TODO: Replace with `AmazonS3Builder::credentials_from_env`
963- info ! ( "Using WebIdentity credential provider" ) ;
963+ debug ! ( "Using WebIdentity credential provider" ) ;
964964
965965 let session_name = std:: env:: var ( "AWS_ROLE_SESSION_NAME" )
966966 . unwrap_or_else ( |_| "WebIdentitySession" . to_string ( ) ) ;
@@ -983,7 +983,7 @@ impl AmazonS3Builder {
983983 self . retry_config . clone ( ) ,
984984 ) ) as _
985985 } else if let Some ( uri) = self . container_credentials_relative_uri {
986- info ! ( "Using Task credential provider" ) ;
986+ debug ! ( "Using Task credential provider" ) ;
987987
988988 let options = self . client_options . clone ( ) . with_allow_http ( true ) ;
989989
@@ -998,7 +998,7 @@ impl AmazonS3Builder {
998998 self . container_credentials_full_uri ,
999999 self . container_authorization_token_file ,
10001000 ) {
1001- info ! ( "Using EKS Pod Identity credential provider" ) ;
1001+ debug ! ( "Using EKS Pod Identity credential provider" ) ;
10021002
10031003 let options = self . client_options . clone ( ) . with_allow_http ( true ) ;
10041004
@@ -1010,7 +1010,7 @@ impl AmazonS3Builder {
10101010 cache : Default :: default ( ) ,
10111011 } ) as _
10121012 } else {
1013- info ! ( "Using Instance credential provider" ) ;
1013+ debug ! ( "Using Instance credential provider" ) ;
10141014
10151015 let token = InstanceCredentialProvider {
10161016 imdsv1_fallback : self . imdsv1_fallback . get ( ) ?,
@@ -1283,7 +1283,6 @@ impl From<S3EncryptionHeaders> for HeaderMap {
12831283
12841284#[ cfg( test) ]
12851285mod tests {
1286- use super :: * ;
12871286 use std:: collections:: HashMap ;
12881287
12891288 #[ test]
0 commit comments