aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-09-13 16:01:55 +0200
committerAlex Auvolat <alex@adnab.me>2022-09-13 16:01:55 +0200
commit44733474bb6c9021c92b59e5c349b4b7ef71409a (patch)
treec84c61e946b493f2b26931e66f3dc981c80855d5
parent07febd3ecd0d491ed01b7ca43846aa43e423b2a1 (diff)
downloadgarage-44733474bb6c9021c92b59e5c349b4b7ef71409a.tar.gz
garage-44733474bb6c9021c92b59e5c349b4b7ef71409a.zip
Remove/change println! in server code (fix #358)
-rw-r--r--src/api/s3/bucket.rs1
-rw-r--r--src/api/s3/copy.rs1
-rw-r--r--src/rpc/kubernetes.rs2
-rw-r--r--src/table/table.rs1
4 files changed, 1 insertions, 4 deletions
diff --git a/src/api/s3/bucket.rs b/src/api/s3/bucket.rs
index 2071fe55..3ac6a6ec 100644
--- a/src/api/s3/bucket.rs
+++ b/src/api/s3/bucket.rs
@@ -295,7 +295,6 @@ fn parse_create_bucket_xml(xml_bytes: &[u8]) -> Option<Option<String>> {
let mut ret = None;
for item in cbc.children() {
- println!("{:?}", item);
if item.has_tag_name("LocationConstraint") {
if ret != None {
return None;
diff --git a/src/api/s3/copy.rs b/src/api/s3/copy.rs
index a1a8c9a4..c5a0fc11 100644
--- a/src/api/s3/copy.rs
+++ b/src/api/s3/copy.rs
@@ -662,7 +662,6 @@ mod tests {
last_modified: s3_xml::Value("2011-04-11T20:34:56.000Z".into()),
etag: s3_xml::Value("\"9b2cf535f27731c974343645a3985328\"".into()),
};
- println!("{}", to_xml_with_header(&v)?);
assert_eq!(to_xml_with_header(&v)?, expected_retval);
diff --git a/src/rpc/kubernetes.rs b/src/rpc/kubernetes.rs
index 939a0eed..197245aa 100644
--- a/src/rpc/kubernetes.rs
+++ b/src/rpc/kubernetes.rs
@@ -56,7 +56,7 @@ pub async fn get_kubernetes_nodes(
let mut ret = Vec::with_capacity(nodes.items.len());
for node in nodes {
- println!("Found Pod: {:?}", node.metadata.name);
+ info!("Found Pod: {:?}", node.metadata.name);
let pubkey = &node
.metadata
diff --git a/src/table/table.rs b/src/table/table.rs
index 51f3837f..8e801be6 100644
--- a/src/table/table.rs
+++ b/src/table/table.rs
@@ -113,7 +113,6 @@ where
async fn insert_internal(&self, e: &F::E) -> Result<(), Error> {
let hash = e.partition_key().hash();
let who = self.data.replication.write_nodes(&hash);
- //eprintln!("insert who: {:?}", who);
let e_enc = Arc::new(ByteBuf::from(rmp_to_vec_all_named(e)?));
let rpc = TableRpc::<F>::Update(vec![e_enc]);