added extra logging
This commit is contained in:
parent
11f3745adb
commit
69c9664eb5
1 changed files with 30 additions and 25 deletions
|
@ -86,7 +86,9 @@ pub async fn send_to_wc_task(
|
||||||
mut sender: SplitSink<WebSocketStream<MaybeTlsStream<TcpStream>>, tokio_tungstenite::tungstenite::Message>
|
mut sender: SplitSink<WebSocketStream<MaybeTlsStream<TcpStream>>, tokio_tungstenite::tungstenite::Message>
|
||||||
) {
|
) {
|
||||||
info!("From app is closed: {:?}", from_app.is_closed());
|
info!("From app is closed: {:?}", from_app.is_closed());
|
||||||
while let Ok(msg) = from_app.recv().await {
|
loop {
|
||||||
|
match from_app.recv().await {
|
||||||
|
Ok(msg) => {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
{
|
{
|
||||||
info!("Sending message to socket!");
|
info!("Sending message to socket!");
|
||||||
|
@ -115,6 +117,9 @@ pub async fn send_to_wc_task(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Err(e) => error!("Send to WC had a recv error! {e}"),
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue