Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

feat: optionally include location info in /__error__ #198

Merged
merged 1 commit into from
Jun 25, 2021
Merged

Conversation

pjenvey
Copy link
Member

@pjenvey pjenvey commented Jun 24, 2021

Description

showing up as a sentry event extra (for debugging purposes)

Testing

https://sentry.prod.mozaws.net/operations/contile/issues/11760304/events/67462305/

Issue(s)

Closes #192

@pjenvey pjenvey requested a review from a team June 24, 2021 21:06
showing up as a sentry event extra (for debugging purposes)

Closes #192
// generate an error for sentry.
error!("Test Error");
Err(HandlerError::internal("Oh Noes!"))
let mut err = HandlerError::internal("Oh Noes!");
if matches!(params.with_location, Some(true)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, TIL: matches!

@pjenvey pjenvey merged commit f0be5e9 into main Jun 25, 2021
@pjenvey pjenvey deleted the feat/192 branch June 25, 2021 00:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add optional location debugging to /__error__
2 participants