From 9bb48e1b21036dcc5ec054a977e9885fb771a8e5 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Tue, 20 Aug 2024 20:23:06 -0700 Subject: [PATCH] added debug call --- src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 4a32a69..20b9b47 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,8 +12,7 @@ use tokio::{ }; use tokio_tungstenite::{connect_async, tungstenite::Message, MaybeTlsStream, WebSocketStream}; use tokio_tungstenite::tungstenite::error::Error as tungstenite_error; -use tracing::field::debug; -use tracing::{error, info, instrument}; +use tracing::{error, info, debug, instrument}; use webrtc::peer_connection::sdp::session_description::RTCSessionDescription; static MAX_MESSAGE: usize = 50; @@ -37,6 +36,8 @@ pub async fn connect_to_server( connection_string: String, result_oneshot: oneshot::Sender> ) { + + debug!("Connecting to parent!"); match connect_async(connection_string).await { Err(e) => { @@ -144,7 +145,7 @@ pub async fn listen_to_ws_task( info!("Received a Frame websocket message?"); } Message::Text(text) => { - debug("Recieved text from websocket: {text}"); + debug!("Recieved text from websocket: {text}"); #[cfg(debug_assertions)] { match serde_json::from_str(&text) {