diff options
author | Alex Auvolat <alex@adnab.me> | 2021-01-16 16:05:54 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-01-16 16:05:54 +0100 |
commit | 36814be447a9cdc4a1e6d39a9fe16ad335ab750a (patch) | |
tree | 5bdedc7b2ed0c5add2c14d7e9a1fbcfe30a3c0d3 /src/api/api_server.rs | |
parent | 6a5add33860349e2866de0e7ddae11375af825a2 (diff) | |
download | garage-36814be447a9cdc4a1e6d39a9fe16ad335ab750a.tar.gz garage-36814be447a9cdc4a1e6d39a9fe16ad335ab750a.zip |
Fix S3 ListObjects result and replace println!s by debug!s0.1.1b
Diffstat (limited to 'src/api/api_server.rs')
-rw-r--r-- | src/api/api_server.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/api_server.rs b/src/api/api_server.rs index ec02572d..f0c3f31b 100644 --- a/src/api/api_server.rs +++ b/src/api/api_server.rs @@ -173,7 +173,7 @@ async fn handler_inner(garage: Arc<Garage>, req: Request<Body>) -> Result<Respon &Method::PUT => { // CreateBucket // If we're here, the bucket already exists, so just answer ok - println!( + debug!( "Body: {}", std::str::from_utf8(&hyper::body::to_bytes(req.into_body()).await?) .unwrap_or("<invalid utf8>") @@ -229,7 +229,7 @@ async fn handler_inner(garage: Arc<Garage>, req: Request<Body>) -> Result<Respon // DeleteObjects Ok(handle_delete_objects(garage, bucket, req).await?) } else { - println!( + debug!( "Body: {}", std::str::from_utf8(&hyper::body::to_bytes(req.into_body()).await?) .unwrap_or("<invalid utf8>") |