Skip to content

chore: Try storing error JSON in sentry #4758

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 13, 2020

Conversation

iamareebjamal
Copy link
Member

No description provided.

@auto-label auto-label bot added the chore label Aug 13, 2020
@vercel
Copy link

vercel bot commented Aug 13, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/h33t332t4
✅ Preview: https://open-event-frontend-git-fork-iamareebjamal-sentry-error-json.eventyay.vercel.app

Copy link
Member

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 4
           

See the complete overview on Codacy

...event.extra,
error_json: JSON.stringify(error)
}
} catch {
Copy link
Member

Choose a reason for hiding this comment

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

// Try to store JSON of error for diagnosing bugs
event.extra = {
...event.extra,
error_json: JSON.stringify(error)
Copy link
Member

Choose a reason for hiding this comment

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

@@ -45,6 +45,16 @@ if (!config.sentry.dsn.includes('dummy')) {
adapter_errors_json: JSON.stringify(error.errors)
}
}

try {
// Try to store JSON of error for diagnosing bugs
Copy link
Member

Choose a reason for hiding this comment

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

@@ -45,6 +45,16 @@ if (!config.sentry.dsn.includes('dummy')) {
adapter_errors_json: JSON.stringify(error.errors)
}
}

try {
Copy link
Member

Choose a reason for hiding this comment

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

@iamareebjamal iamareebjamal merged commit 97801b3 into fossasia:development Aug 13, 2020
@iamareebjamal iamareebjamal deleted the sentry-error-json branch August 29, 2020 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants