Skip to content

Conversation

@ollietb
Copy link
Contributor

@ollietb ollietb commented Jul 1, 2020

Q A
Bug fix? yes
New feature? yes
BC breaks? no
Deprecations? no
Tickets
License MIT
Doc PR api-platform/docs#...

Errors thrown from the platform are caught by GraphQL and can't be logged or tracked in production environments, making it impossible to track down the cause of errors or use error analysers. This PR allows the errors from GraphQL to be handled by the developers by decorating the ErrorHandler. The errors can either logged (though a service like monolog) or sent to a 3rd party error analyser, like Sentry or NewRelic.

I realise it might conflict with PR #3063 but I wanted to try and get it into this branch as it seems like quite a big oversight that could seriously jeopardize the stability of live environments.

@alanpoulain
Copy link
Member

Thanks for this PR.
However I think it should target master and take into account #3063 indeed. Even if it's a needed feature, it's still a new feature.

@ollietb ollietb mentioned this pull request Jul 7, 2020
@alanpoulain
Copy link
Member

Superseded by #3632.

@alanpoulain alanpoulain closed this Jul 7, 2020
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