We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I use the ArgumentsValidationException in mutations frequently to ensure my model adheres to business logic using Symfony asserts.
ArgumentsValidationException
It's very handy because validation errors are properly displayed without much effort.
The problem is these kinds of exception are logged as critical (see
GraphQLBundle/src/EventListener/ErrorLoggerListener.php
Line 28 in a8c5661
In my opinion, it should behave exactly like UserError (logged as Error).
UserError
What do you think ?
Proposals :
// Overblog\GraphQLBundle\EventListener\ErrorLoggerListener public function onErrorFormatting(ErrorFormattingEvent $event): void { // ... if ($exception instanceof UserWarning) { if ($exception->getPrevious()) { $this->log($exception->getPrevious(), LogLevel::WARNING); } return; } if ($exception instanceof ClientSafe) { if ($exception->getPrevious() && $exception->isClientSafe()) { $this->log($exception->getPrevious()); } return; } $this->log($exception, LogLevel::CRITICAL);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I use the
ArgumentsValidationException
in mutations frequently to ensure my model adheres to business logic using Symfony asserts.It's very handy because validation errors are properly displayed without much effort.
The problem is these kinds of exception are logged as critical (see
GraphQLBundle/src/EventListener/ErrorLoggerListener.php
Line 28 in a8c5661
In my opinion, it should behave exactly like
UserError
(logged as Error).What do you think ?
Proposals :
The text was updated successfully, but these errors were encountered: