From 46d3a796f22ff95d2126226e652c86d08696d16c Mon Sep 17 00:00:00 2001 From: core Date: Sun, 16 Apr 2023 14:52:09 -0400 Subject: [PATCH] change failures into warnings --- server/src/timer.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/timer.rs b/server/src/timer.rs index f126baa4fad5aa75a86c1b33adda87ffc60667b4..81c68cb04d6c79402f549e8bf97b8aad73028e16 100644 --- a/server/src/timer.rs +++ b/server/src/timer.rs @@ -1,5 +1,5 @@ use std::{time::Duration, sync::Arc}; -use log::{error}; +use log::{error, warn}; use nalgebra::vector; use rapier2d_f64::prelude::{PhysicsPipeline}; use async_std::sync::RwLock; @@ -87,7 +87,7 @@ pub async fn timer_main(mgr: ClientManager, physics_data: Arc (), Err(e) => { - error!("unable to send position packet: {}", e); + warn!("unable to send position packet: {}", e); } }; @@ -96,12 +96,12 @@ pub async fn timer_main(mgr: ClientManager, physics_data: Arc (), Err(e) => { - error!("unable to send earth packet: {}", e); + warn!("unable to send earth packet: {}", e); } }; } Err(e) => { - error!("unable to update a client thread: {}", e); + warn!("unable to update a client thread: {}", e); to_remove.push(addr); } }