diff --git a/src/util.rs b/src/util.rs index 6ea8d47..9663933 100644 --- a/src/util.rs +++ b/src/util.rs @@ -72,19 +72,10 @@ pub async fn async_post_markers(data: Vec) { let parsed_address: String = data[0].api_address.clone() + "/api/markers?auth_token=" + &authentication_token; - let mut status: String = format!("fetching {} markers", data.len().to_string()); - - info!("{}", status); - for marker in data { let payload = parse_marker_to_payload(marker); let request_body = serde_json::to_string(&payload).unwrap(); - info!( - "Parsing: {}, to {} with {}", - request_body, parsed_address, authentication_token - ); - let response = client .post(&parsed_address) .body(request_body) @@ -94,17 +85,13 @@ pub async fn async_post_markers(data: Vec) { match response { Ok(result) => { - status = result.status().to_string(); info!("Received: {}", result.text().await.unwrap()); } Err(error) => { - status = "fetch failed".to_string(); error!("Error: {}", error) } } } - - info!("Final status: {}", status); } pub fn blocking_fetch_auth_token(payload: LoginInfo, api_address: String) -> String {