Skip to content
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

Only include errors mixin in production mode #12

Merged
merged 1 commit into from
Nov 2, 2020

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Nov 2, 2020

We need the error messages during development

@tvdeyen tvdeyen requested a review from mamhoff November 2, 2020 15:29
We need the error messages during development
@tvdeyen tvdeyen force-pushed the error-mixin-production-only branch from fa6852e to e2d71b1 Compare November 2, 2020 15:29
Copy link
Contributor

@mamhoff mamhoff left a comment

Choose a reason for hiding this comment

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

We could probably do something more clever here and have a custom error handling class that does the right thing per environment. But for now this unblocks our development - in with it!

@tvdeyen tvdeyen merged commit 7c6afb9 into production Nov 2, 2020
@tvdeyen tvdeyen deleted the error-mixin-production-only branch November 2, 2020 16:19
@tvdeyen
Copy link
Member Author

tvdeyen commented Nov 2, 2020

We could probably do something more clever here and have a custom error handling class that does the right thing per environment. But for now this unblocks our development - in with it!

Honestly I think this should be dealt with upstream. The mixin provided is not very clever and hiding errors from logs is not very nice.

tvdeyen added a commit that referenced this pull request Nov 6, 2020
- Add fixed\_elements relationship to element serializer [\#14](#14) ([tvdeyen](https://github.com/tvdeyen))
- Rename element\_type into name [\#13](#13) ([tvdeyen](https://github.com/tvdeyen))
- Only include errors mixin in production mode [\#12](#12) ([tvdeyen](https://github.com/tvdeyen))
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