Skip to content

Commit

Permalink
feat: add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger committed Nov 19, 2024
1 parent f44fd42 commit da0f50a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/desktop/src/providers/provider_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(());
};
Expand All @@ -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);

Expand Down

0 comments on commit da0f50a

Please sign in to comment.