From a542a8777e424a8cacc38f3c1032eb39ff9ce3db Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 19 Oct 2022 19:53:19 +0200 Subject: [PATCH] Added minindump writer for investigation of #50 --- backend/Cargo.toml | 1 + backend/src/main.rs | 3 +++ 2 files changed, 4 insertions(+) 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...");