Skip to content

Commit

Permalink
🔊 chore: Add panic logging and Sentry integration
Browse files Browse the repository at this point in the history
🔊 chore: Add panic logging and Sentry integration

🔊 Add panic logging and Sentry integration
  • Loading branch information
bronzelle committed Jan 8, 2024
1 parent c9e7353 commit 7231417
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ async fn main() -> Result<()> {
..Default::default()
});

error!("{:#?}", panic_info);
if let Some(client) = sentry::Hub::current().client() {
client.close(Some(Duration::from_secs(2)));
}
Expand Down

0 comments on commit 7231417

Please sign in to comment.