Skip to content

Commit

Permalink
log the SDK requests
Browse files Browse the repository at this point in the history
Signed-off-by: James Bornholt <bornholt@amazon.com>
  • Loading branch information
jamesbornholt committed Mar 4, 2024
1 parent ac6d70e commit bb73c7c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
8 changes: 6 additions & 2 deletions mountpoint-s3-client/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,16 @@ pub async fn get_mpu_count_for_key(
) -> Result<usize, SdkError<ListMultipartUploadsError, HttpResponse>> {
// 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))
Expand Down

0 comments on commit bb73c7c

Please sign in to comment.