From 8afc75d543ed56c6069ad6912f9f6e7e3a512477 Mon Sep 17 00:00:00 2001 From: daimond113 <72147841+daimond113@users.noreply.github.com> Date: Fri, 25 Oct 2024 10:58:21 +0200 Subject: [PATCH] fix(registry): add debug symbols for Sentry --- Cargo.toml | 4 ++++ registry/src/main.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b23f63f..9b4000b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -88,3 +88,7 @@ members = ["registry"] [profile.dev.package.full_moon] opt-level = 3 + +[profile.release.package.pesde-registry] +# add debug symbols for Sentry stack traces +debug = "full" \ No newline at end of file diff --git a/registry/src/main.rs b/registry/src/main.rs index 7bf2b82..7ef9984 100644 --- a/registry/src/main.rs +++ b/registry/src/main.rs @@ -201,7 +201,7 @@ fn main() -> std::io::Result<()> { } let _guard = if let Some(sentry_url) = sentry_url { - std::env::set_var("RUST_BACKTRACE", "1"); + std::env::set_var("RUST_BACKTRACE", "full"); Some(sentry::init(( sentry_url,