From 94104b621e2eec44dd90eb22fae2db2ce4938b87 Mon Sep 17 00:00:00 2001 From: FxQnLr Date: Thu, 2 Nov 2023 20:57:47 +0100 Subject: update dependencies --- src/routes/start.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/routes/start.rs') diff --git a/src/routes/start.rs b/src/routes/start.rs index 9cd358b..271f924 100644 --- a/src/routes/start.rs +++ b/src/routes/start.rs @@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize}; use std::sync::Arc; use axum::extract::State; use serde_json::{json, Value}; -use tracing::{debug, info, warn}; +use tracing::{debug, info}; use uuid::Uuid; use crate::auth::auth; use crate::config::SETTINGS; @@ -16,7 +16,6 @@ use crate::services::ping::PingValue; #[axum_macros::debug_handler] pub async fn start(State(state): State>, headers: HeaderMap, Json(payload): Json) -> Result, WebolError> { info!("POST request"); - warn!("{:?}", state.ping_map); let secret = headers.get("authorization"); let authorized = auth(secret).map_err(WebolError::Auth)?; if authorized { @@ -46,7 +45,7 @@ pub async fn start(State(state): State>, headers: HeaderMap let uuid_gen = Uuid::new_v4().to_string(); let uuid_genc = uuid_gen.clone(); tokio::spawn(async move { - debug!("Init ping service"); + debug!("init ping service"); state.ping_map.insert(uuid_gen.clone(), PingValue { ip: device.ip.clone(), online: false }); crate::services::ping::spawn(state.ping_send.clone(), device.ip, uuid_gen.clone(), &state.ping_map).await -- cgit v1.2.3