diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 64b70bc..957f366 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -23,6 +23,7 @@ serde_urlencoded = "0.7.1" once_cell = "1.15.0" +breakpad-handler = "0.1.0" jsonwebtoken = "8.1.1" thiserror = "1.0.37" chrono = "0.4.22" diff --git a/backend/src/main.rs b/backend/src/main.rs index 9230732..9f8cf75 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -178,6 +178,9 @@ fn main() { println!("Loading config..."); let _ = config::CONFIG; + println!("Installing breakpad handler..."); + breakpad_handler::BreakpadHandler::attach("./crash", breakpad_handler::InstallOptions::BothHandlers, Box::new(|| {})).expect("Failed to install breakpad handler"); + let db_pool: db::DBPool = db::build_pool(); println!("Running migrations...");