Skip to content

Commit 10f5fc7

Browse files
authored
log errors from gcp auth lib (#2022)
1 parent e0d8992 commit 10f5fc7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

runtimes/core/src/objects/gcs/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ async fn initialize(cfg: &pb::bucket_cluster::Gcs) -> anyhow::Result<Arc<gcs::cl
7171
config = config
7272
.with_auth()
7373
.await
74+
.inspect_err(|e| log::error!("unable to resolve client config: {e:?}"))
7475
.context("unable to resolve client config")?;
7576
}
7677

runtimes/core/src/pubsub/gcp/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,12 @@ impl LazyGCPClient {
7070
let config = gcp::client::ClientConfig::default()
7171
.with_auth()
7272
.await
73+
.inspect_err(|e| log::error!("failed to get client config: {e:?}"))
7374
.context("get client config")?;
74-
gcp::client::Client::new(config).await.context("get client")
75+
gcp::client::Client::new(config)
76+
.await
77+
.inspect_err(|e| log::error!("failed to get client: {e:?}"))
78+
.context("get client")
7579
})
7680
.await
7781
}

0 commit comments

Comments
 (0)