@@ 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<RwLock<PhysicsData
match client_thread.tx.send(ClientHandlerMessage::PlayersUpdate {players: protocol_players.clone()}).await {
Ok(_) => (),
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<RwLock<PhysicsData
match client_thread.tx.send(planet_data).await {
Ok(_) => (),
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);
}
}