fix sentry integration
All checks were successful
Build and Test / build-editions (minecraft-wiiu) (push) Successful in 8m39s
Build and Test / build-editions (sonic-transformed) (push) Successful in 8m41s
Build and Test / build-editions (fast-racing-neo) (push) Successful in 8m46s
Build and Test / build-editions (mario-tennis) (push) Successful in 8m49s
Build and Test / build-editions (DATABASE_SMM, super-mario-maker) (push) Successful in 8m50s
Build and Test / build-editions (DATABASE_SMM, wii-sports-club) (push) Successful in 9m0s
Build and Test / build-editions (splatoon) (push) Successful in 7m6s
Build and Test / build-editions (DATABASE_FRIENDS, friends) (push) Successful in 9m12s
Build and Test / build-editions (terraria) (push) Successful in 6m0s
Build and Test / build-editions (splatoon-testfire) (push) Successful in 6m57s
Build and Test / build-editions (wii-u-chat) (push) Successful in 4m51s
Build and Test / build-editions (DATABASE_SMM, puyopuyo) (push) Successful in 9m25s
All checks were successful
Build and Test / build-editions (minecraft-wiiu) (push) Successful in 8m39s
Build and Test / build-editions (sonic-transformed) (push) Successful in 8m41s
Build and Test / build-editions (fast-racing-neo) (push) Successful in 8m46s
Build and Test / build-editions (mario-tennis) (push) Successful in 8m49s
Build and Test / build-editions (DATABASE_SMM, super-mario-maker) (push) Successful in 8m50s
Build and Test / build-editions (DATABASE_SMM, wii-sports-club) (push) Successful in 9m0s
Build and Test / build-editions (splatoon) (push) Successful in 7m6s
Build and Test / build-editions (DATABASE_FRIENDS, friends) (push) Successful in 9m12s
Build and Test / build-editions (terraria) (push) Successful in 6m0s
Build and Test / build-editions (splatoon-testfire) (push) Successful in 6m57s
Build and Test / build-editions (wii-u-chat) (push) Successful in 4m51s
Build and Test / build-editions (DATABASE_SMM, puyopuyo) (push) Successful in 9m25s
This commit is contained in:
parent
f12e60709c
commit
52893fb728
1 changed files with 4 additions and 5 deletions
|
|
@ -364,15 +364,14 @@ pub fn env_var(name: &'static str) -> Result<String, EnvVarError> {
|
|||
|
||||
pub async fn with_setup(f: impl AsyncFnOnce() -> anyhow::Result<()>) {
|
||||
println!("setting up logger and dotenv");
|
||||
let options = sentry::ClientOptions::new()
|
||||
.release(rnex_release())
|
||||
.send_default_pii(true);
|
||||
dotenv::dotenv().ok();
|
||||
let _maybe_sentry = if let Ok(sentry_url) = std::env::var("SENTRY_URL") {
|
||||
Some(sentry::init((
|
||||
sentry_url,
|
||||
sentry::ClientOptions {
|
||||
release: Some(Cow::Owned(rnex_release())),
|
||||
send_default_pii: true,
|
||||
..Default::default()
|
||||
},
|
||||
options
|
||||
)))
|
||||
} else {
|
||||
None
|
||||
|
|
|
|||
Loading…
Reference in a new issue