From 8cab24104c681e401dccd4295e9066c196d5174c Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Tue, 20 Aug 2024 20:30:25 -0700 Subject: [PATCH] more logging --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index a5af1c7..7cb4451 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -86,6 +86,7 @@ pub async fn send_to_wc_task( is_closed: Arc, mut sender: SplitSink>, tokio_tungstenite::tungstenite::Message> ) { + info!("From app is closed: {:?}", from_app.is_closed()); while let Ok(msg) = from_app.recv().await { #[cfg(debug_assertions)] { @@ -131,6 +132,8 @@ pub async fn listen_to_ws_task( mut reader: SplitStream>> ){ + info!("To_app is closed: {:?}", to_app.is_closed()); + while let Some(msg) = reader.next().await { match msg { Err(e) => {