From 90aec71d3370d6e2430e399f71f375033af059f8 Mon Sep 17 00:00:00 2001 From: nworbnhoj Date: Fri, 8 Dec 2023 05:00:29 +1100 Subject: [PATCH] add logging to sigchat Event::Focus --- apps/sigchat/src/main.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/sigchat/src/main.rs b/apps/sigchat/src/main.rs index 3a476123e..1744c1657 100644 --- a/apps/sigchat/src/main.rs +++ b/apps/sigchat/src/main.rs @@ -84,7 +84,13 @@ fn wrapped_main() -> ! { Some(Event::Focus) => { if first_focus { first_focus = false; - sigchat.connect(); + match sigchat.connect() { + Ok(true) => log::info!("connected to Signal Account"), + Ok(false) => log::info!("not connected to Signal Account"), + Err(e) => { + log::warn!("error while connecting to Signal Account: {e}") + } + } } sigchat.redraw(); }