From 6cf294c1765e8b48be69495c8e4e068997f34a4a Mon Sep 17 00:00:00 2001 From: Micah Wylde Date: Tue, 7 Jan 2025 23:00:28 -0800 Subject: [PATCH] Add some logging --- crates/arroyo-storage/src/aws.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/arroyo-storage/src/aws.rs b/crates/arroyo-storage/src/aws.rs index c087df9e4..a06c383e7 100644 --- a/crates/arroyo-storage/src/aws.rs +++ b/crates/arroyo-storage/src/aws.rs @@ -7,6 +7,7 @@ use std::error::Error; use std::sync::Arc; use std::time::{Duration, Instant}; use tokio::sync::OnceCell; +use tracing::info; pub struct ArroyoCredentialProvider { cache: TokenCache>, @@ -66,6 +67,7 @@ impl ArroyoCredentialProvider { async fn get_token( provider: &SharedCredentialsProvider, ) -> Result>, Box> { + info!("Getting credentials"); let creds = provider .provide_credentials() .await @@ -73,6 +75,7 @@ async fn get_token( store: "S3", source: Box::new(e), })?; + info!("Got credentials = {:?}", creds); let expiry = creds .expiry() .map(|exp| Instant::now() + exp.elapsed().unwrap_or_default());