aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-07-15 15:41:49 +0200
committerAlex Auvolat <alex@adnab.me>2020-07-15 15:41:49 +0200
commit5faf069e3373ebec148a8e81e31b696f0fe746a1 (patch)
tree3d29b25520116b8ced3aeecad076b4fe860febb9 /src/api
parent27a0d0d85902c083e2f422ddfc7ec2ba7247767f (diff)
downloadgarage-5faf069e3373ebec148a8e81e31b696f0fe746a1.tar.gz
garage-5faf069e3373ebec148a8e81e31b696f0fe746a1.zip
trace test
Diffstat (limited to 'src/api')
-rw-r--r--src/api/s3_put.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/api/s3_put.rs b/src/api/s3_put.rs
index 2ab67884..0926ba89 100644
--- a/src/api/s3_put.rs
+++ b/src/api/s3_put.rs
@@ -88,11 +88,15 @@ pub async fn handle_put(
return Err(Error::Message(format!(
"Unable to validate x-amz-content-sha256"
)));
+ } else {
+ trace!("Successfully validated x-amz-content-sha256");
}
}
if let Some(expected_md5) = content_md5 {
if expected_md5.trim_matches('"') != md5sum {
return Err(Error::Message(format!("Unable to validate content-md5")));
+ } else {
+ trace!("Successfully validated content-md5");
}
}
@@ -358,11 +362,15 @@ pub async fn handle_put_part(
return Err(Error::Message(format!(
"Unable to validate x-amz-content-sha256"
)));
+ } else {
+ trace!("Successfully validated x-amz-content-sha256");
}
}
if let Some(expected_md5) = content_md5 {
if expected_md5.trim_matches('"') != md5sum {
return Err(Error::Message(format!("Unable to validate content-md5")));
+ } else {
+ trace!("Successfully validated content-md5");
}
}