Skip to content

Commit

Permalink
Don't send sentry reports in debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsEeleeya committed Nov 19, 2024
1 parent a0196b7 commit 8addab0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/desktop/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ fn main() {
println!("-- user: {:?}", &event.user);
println!("-- event tags: {:?}", &event.tags);
println!("-- event contexts: {:?}", &event.contexts);
Some(event)
// None
None
}

#[cfg(not(debug_assertions))]
Expand All @@ -32,7 +31,7 @@ fn main() {
},
))),
Err(_) => {
tracing::warn!(
eprintln!(
"Sentry URL not found in environment variables, skipping Sentry initialization"
);
None
Expand Down

0 comments on commit 8addab0

Please sign in to comment.