Live location tracking and playback for the game "manhunt"

Less annoying Axum error

bwc9876.dev afc1f9ae a23c1b14

verified
+6 -3
+1 -1
manhunt-app/src/state.rs
··· 229 229 error_dialog( 230 230 &app_game, 231 231 &format!( 232 - "Encountered an error while in the lobby. you have been disconnected:\n\n{why}" 232 + "Encountered an error while in the lobby. You have been disconnected:\n\n{why}" 233 233 ), 234 234 ); 235 235 state.quit_to_menu(app_game).await;
+5 -2
manhunt-signaling/src/topology.rs
··· 1 1 use async_trait::async_trait; 2 2 use axum::extract::ws::Message; 3 3 use futures::StreamExt; 4 - use log::{error, info, warn}; 4 + use log::{debug, error, info, warn}; 5 5 use matchbox_protocol::{JsonPeerEvent, PeerRequest}; 6 6 use matchbox_signaling::{ 7 7 ClientRequestError, NoCallbacks, SignalingTopology, WsStateMeta, common_logic::parse_request, ··· 56 56 Ok(req) => req, 57 57 Err(e) => match e { 58 58 ClientRequestError::Axum(e) => { 59 - warn!("Peer {peer_id} encountered Axum error: {e:?}. Disconnecting..."); 59 + let e = e.into_inner(); 60 + debug!("Peer {peer_id} Axum error: {e:?}"); 60 61 break; 61 62 } 62 63 ClientRequestError::Close => { ··· 95 96 } else { 96 97 warn!("Trying to remove peer {peer_id}, which doesn't exist?"); 97 98 } 99 + 100 + info!("Peer {peer_id} Finish"); 98 101 } 99 102 }