From 333c7190749ecfd2f1ea0237cd7f32a591e6e2e0 Mon Sep 17 00:00:00 2001 From: Thomas Gauges Date: Wed, 27 Sep 2023 20:25:58 +0200 Subject: [PATCH] feat: log frontend questions and answers --- src-tauri/src/event.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src-tauri/src/event.rs b/src-tauri/src/event.rs index 9cb230f..9fa9fcb 100644 --- a/src-tauri/src/event.rs +++ b/src-tauri/src/event.rs @@ -48,6 +48,7 @@ where { await_dom_content_loaded(); let id = Uuid::new_v4().to_string(); + log::debug!("Asking frontend question on {} ({}).", question_channel, id); let (tx, rx) = oneshot::channel(); let id_2 = id.clone(); let tx_mutex = Mutex::new(Some(tx)); @@ -70,5 +71,6 @@ where )?; let answer_data = rx.await.unwrap(); get_window().unlisten(event_handler); + log::debug!("Received frontend answer on {} ({}).", answer_channel, id); Ok(answer_data) }