Skip to content

Better sentry client errors#3830

Merged
bjester merged 1 commit intolearningequality:hotfixesfrom
rtibbles:sentry_client_errors
Nov 22, 2022
Merged

Better sentry client errors#3830
bjester merged 1 commit intolearningequality:hotfixesfrom
rtibbles:sentry_client_errors

Conversation

@rtibbles
Copy link
Copy Markdown
Member

Summary

Description of the change(s) you made

  • Changes sentry error collection for failed requests to captureException
  • Simplify handling of context and just use the raw error object for simplicity

Manual verification steps performed

  1. Load Studio
  2. In Network tools, turn 'throttling' to Offline
  3. Confirm that the console logging still works for errors
  4. Add raise Exception to the post method of the sync endpoint in endpoint.py
  5. Confirm that the resultant 500 errors are properly logged to the console

@rtibbles rtibbles requested a review from bjester November 22, 2022 00:09
Copy link
Copy Markdown
Member

@bjester bjester left a comment

Choose a reason for hiding this comment

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

LGTM

@bjester bjester merged commit 36d6ee2 into learningequality:hotfixes Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants