aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/main.rs
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-08-27 01:17:03 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-08-27 01:17:03 +0200
commit2b2d636177af18a1cd0bdee48cacd4e60d5eb37d (patch)
treee0918b9f386ec48fa2202e2c5a76fe6406425fda /src-tauri/src/main.rs
parent970991b40c3c6b5db5481fee489c42ae16d98e3b (diff)
downloadFlightCore-2b2d636177af18a1cd0bdee48cacd4e60d5eb37d.tar.gz
FlightCore-2b2d636177af18a1cd0bdee48cacd4e60d5eb37d.zip
Add Sentry crash report logging
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r--src-tauri/src/main.rs10
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();