Added minindump writer for investigation of #50

This commit is contained in:
Mutzi 2022-10-19 19:53:19 +02:00
parent 41194cbf04
commit a542a8777e
2 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,7 @@ serde_urlencoded = "0.7.1"
once_cell = "1.15.0" once_cell = "1.15.0"
breakpad-handler = "0.1.0"
jsonwebtoken = "8.1.1" jsonwebtoken = "8.1.1"
thiserror = "1.0.37" thiserror = "1.0.37"
chrono = "0.4.22" chrono = "0.4.22"

View File

@ -178,6 +178,9 @@ fn main() {
println!("Loading config..."); println!("Loading config...");
let _ = config::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(); let db_pool: db::DBPool = db::build_pool();
println!("Running migrations..."); println!("Running migrations...");