aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-24 19:27:27 +0000
committerAlex Auvolat <alex@adnab.me>2020-04-24 19:27:27 +0000
commitbe4831d7687b59eb4a8f7a2856554f9157cc998d (patch)
treea0b0ff411cbb88928a583ffe070ec767a148fbcc
parent200f2254a378f850eaba09d30f7e48100c7124e4 (diff)
downloadgarage-be4831d7687b59eb4a8f7a2856554f9157cc998d.tar.gz
garage-be4831d7687b59eb4a8f7a2856554f9157cc998d.zip
Less verbosity
-rw-r--r--src/api/s3_list.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/api/s3_list.rs b/src/api/s3_list.rs
index 8b4703df..af160ac2 100644
--- a/src/api/s3_list.rs
+++ b/src/api/s3_list.rs
@@ -30,7 +30,7 @@ pub async fn handle_list(
let mut truncated = true;
let mut next_chunk_start = prefix.to_string();
- println!("List request: `{}` {} `{}`", delimiter, max_keys, prefix);
+ debug!("List request: `{}` {} `{}`", delimiter, max_keys, prefix);
while result.len() < max_keys && truncated {
let objects = garage
@@ -70,7 +70,6 @@ pub async fn handle_list(
size: 0,
},
};
- println!("Entry: {} {:?}", delimited_key, new_info);
result.insert(delimited_key, new_info);
}
}
@@ -106,7 +105,6 @@ pub async fn handle_list(
writeln!(&mut xml, "\t</Contents>").unwrap();
}
writeln!(&mut xml, "</ListBucketResult>").unwrap();
- println!("{}", xml);
Ok(Response::new(Box::new(BytesBody::from(xml.into_bytes()))))
}