From bb73c7c156404b390681821ffe23703380b12ca3 Mon Sep 17 00:00:00 2001 From: James Bornholt Date: Mon, 4 Mar 2024 04:50:35 +0000 Subject: [PATCH] log the SDK requests Signed-off-by: James Bornholt --- .github/workflows/integration.yml | 2 +- mountpoint-s3-client/tests/common/mod.rs | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 0ddb87cb0..826b5c334 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -98,7 +98,7 @@ jobs: - name: Run tests run: cargo nextest run --features $RUST_FEATURES env: - RUST_LOG: mountpoint=trace,awscrt=debug + RUST_LOG: warn,mountpoint=trace,awscrt=debug - name: Save Cargo cache uses: actions/cache/save@v3 if: inputs.environment != 'PR integration tests' diff --git a/mountpoint-s3-client/tests/common/mod.rs b/mountpoint-s3-client/tests/common/mod.rs index 313574f16..179d73167 100644 --- a/mountpoint-s3-client/tests/common/mod.rs +++ b/mountpoint-s3-client/tests/common/mod.rs @@ -179,12 +179,16 @@ pub async fn get_mpu_count_for_key( ) -> Result> { // This could be broken if we have initiated more than one multipart upload using the same key // since ListMultipartUploads returns all multipart uploads for that key. - let upload_count = client + let uploads = client .list_multipart_uploads() .bucket(bucket) .prefix(prefix) .send() - .await? + .await?; + + tracing::warn!(?uploads, ?bucket, ?prefix, ?key, "uploads"); + + let upload_count = uploads .uploads() .iter() .filter(|&u| u.key() == Some(key))