Log when plugin runtime exits

This commit is contained in:
Gregory Schier
2024-07-25 09:28:08 -07:00
parent 97947e5680
commit 203cbc5788
3 changed files with 37 additions and 20 deletions

View File

@@ -26,7 +26,7 @@ pub fn init<R: Runtime>() -> TauriPlugin<R> {
.on_event(|app, e| match e {
RunEvent::ExitRequested { code, .. } => {
tauri::async_runtime::block_on(async move {
info!("Exiting plugin runtime because of app exit {:?}", code);
info!("Exiting plugin runtime due to app exit {:?}", code);
let manager: State<Mutex<PluginManager>> = app.state();
manager.lock().await.cleanup();
});