aboutsummaryrefslogtreecommitdiff
path: root/src-tauri
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-03-13 21:35:10 +0100
committerGitHub <noreply@github.com>2023-03-13 20:35:10 +0000
commit56c0ccb551f99a0ca35181b923677157367a39f6 (patch)
tree0b5e2c2557d747c2b06e5110d33694105de77b38 /src-tauri
parente96391636565a2184b9e84ee0a6aaf58f67b9b54 (diff)
downloadFlightCore-56c0ccb551f99a0ca35181b923677157367a39f6.tar.gz
FlightCore-56c0ccb551f99a0ca35181b923677157367a39f6.zip
feat: Add some breadcrumbs printing install path (#206)
This will show up in sentry dashboard on crash and will help me solve a thread crash that's caused by Northstar failing to get installed.
Diffstat (limited to 'src-tauri')
-rw-r--r--src-tauri/src/lib.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index 27019361..ee3c91ed 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -1,6 +1,7 @@
use std::env;
use anyhow::{anyhow, Context, Result};
+use sentry::{add_breadcrumb, Breadcrumb, Level};
mod northstar;
@@ -230,6 +231,14 @@ pub async fn install_northstar(
.ok_or_else(|| panic!("Couldn't find Northstar on thunderstore???"))
.unwrap();
+ // Breadcrumb for sentry to debug crash
+ add_breadcrumb(Breadcrumb {
+ // category: Some("auth".into()),
+ message: Some(format!("Install path \"{}\"", game_path)),
+ level: Level::Info,
+ ..Default::default()
+ });
+
do_install(
nmod.versions.get(&nmod.latest).unwrap(),
std::path::Path::new(game_path),