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