diff options
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r-- | src-tauri/src/main.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index b5cae7b9..41776ac4 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -15,6 +15,16 @@ use tokio::time::sleep; struct Counter(Arc<Mutex<i32>>); fn main() { + // Only enable Sentry crash logs on release + #[cfg(not(debug_assertions))] + let _guard = sentry::init(( + "https://f833732deb2240b0b2dc4abce97d0f1d@o1374052.ingest.sentry.io/6692177", + sentry::ClientOptions { + release: sentry::release_name!(), + ..Default::default() + }, + )); + tauri::Builder::default() .setup(|app| { let app_handle = app.app_handle(); |