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 c319e52
Showing 1 changed file with 6 additions and 2 deletions.
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?;

println!("uploads: {uploads:?}, {bucket:?}, {prefix:?}, {key:?}");

let upload_count = uploads
.uploads()
.iter()
.filter(|&u| u.key() == Some(key))
Expand Down

0 comments on commit c319e52

Please sign in to comment.