- Issue created by @mglaman
- Merge request !1389ApiExceptionSubscriber prevents ExceptionLoggingSubscriber from running β (Open) created by mglaman
\Drupal\experience_builder\EventSubscriber\ApiExceptionSubscriber::getSubscribedEvents sets a priority that breaks \Drupal\Core\EventSubscriber\ExceptionLoggingSubscriber. They both are 50. Once an response is set on a \Symfony\Component\HttpKernel\Event\RequestEvent propagation of the event stops. So ApiExceptionSubscriber prevents logging.
I think the code has a typo and meant for priority to be -50 not 50 per // Lower than the priority of \Drupal\Core\EventSubscriber\ExceptionJsonSubscriber.
Set priority to -50, ExceptionJsonSubscriber is -75.
Active
1.0
β¦Β to be triaged