From da0f50a2ca56cd96e52032b84115469fff4e86b9 Mon Sep 17 00:00:00 2001 From: Lars Berger Date: Tue, 19 Nov 2024 15:33:21 +0800 Subject: [PATCH] feat: add logging --- packages/desktop/src/providers/provider_manager.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/desktop/src/providers/provider_manager.rs b/packages/desktop/src/providers/provider_manager.rs index df0689a1..f16f3aa6 100644 --- a/packages/desktop/src/providers/provider_manager.rs +++ b/packages/desktop/src/providers/provider_manager.rs @@ -155,6 +155,11 @@ impl ProviderManager { if let Some(found_emit) = self.emit_cache.lock().await.get(&config_hash) { + tracing::info!( + "Emitting cached provider emission for: {}", + config_hash + ); + self.app_handle.emit("provider-emit", found_emit)?; return Ok(()); }; @@ -172,6 +177,8 @@ impl ProviderManager { return Ok(()); } + tracing::info!("Creating provider: {}", config_hash); + let (async_input_tx, async_input_rx) = mpsc::channel(1); let (sync_input_tx, sync_input_rx) = crossbeam::channel::bounded(1);