From 2f064d5ccc18edd6602b12527ad783838c5b529e Mon Sep 17 00:00:00 2001 From: Joseph T Lyons Date: Wed, 19 Oct 2022 17:30:00 -0400 Subject: [PATCH] Remove debug prints --- crates/client/src/telemetry.rs | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/crates/client/src/telemetry.rs b/crates/client/src/telemetry.rs index 3fafce09c0..02c1790664 100644 --- a/crates/client/src/telemetry.rs +++ b/crates/client/src/telemetry.rs @@ -196,16 +196,10 @@ impl Telemetry { distinct_id: device_id, set: json!({ "staff": is_staff, "id": metrics_id }), }])?; - - eprintln!("request: {}", std::str::from_utf8(&json_bytes).unwrap()); - let request = Request::post(MIXPANEL_ENGAGE_URL) .header("Content-Type", "application/json") .body(json_bytes.into())?; - let response = this.http_client.send(request).await?; - - eprintln!("response: {:?} {:?}", response.status(), response.body()); - + this.http_client.send(request).await?; Ok(()) } .log_err(), @@ -281,16 +275,10 @@ impl Telemetry { json_bytes.clear(); serde_json::to_writer(&mut json_bytes, &events)?; - - eprintln!("request: {}", std::str::from_utf8(&json_bytes).unwrap()); - let request = Request::post(MIXPANEL_EVENTS_URL) .header("Content-Type", "application/json") .body(json_bytes.into())?; - let response = this.http_client.send(request).await?; - - eprintln!("response: {:?} {:?}", response.status(), response.body()); - + this.http_client.send(request).await?; Ok(()) } .log_err(),