Pull DSN from runtime env, enable Sentry debug mode with RUST_LOG=debug

This commit is contained in:
Deirdre Connolly 2020-12-04 05:52:29 -05:00 committed by Deirdre Connolly
parent 1fb9198248
commit c03a3a2606
1 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,10 @@ fn main() {
if cfg!(feature = "enable-sentry") {
// The Sentry default config pulls in the DSN from the `SENTRY_DSN`
// environment variable.
let _guard = sentry::init(());
let _guard = sentry::init(sentry::ClientOptions {
debug: true,
..Default::default()
});
}
abscissa_core::boot(&APPLICATION);