ApiExceptionSubscriber prevents ExceptionLoggingSubscriber from running
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3538825. -->
Reported by: [mglaman](https://www.drupal.org/user/2416470)
Related to !1123 !1389
>>>
<h3 id="overview">Overview</h3>
<p>\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.</p>
<p>I think the code has a typo and meant for priority to be -50 not 50 per <code>// Lower than the priority of \Drupal\Core\EventSubscriber\ExceptionJsonSubscriber.</code></p>
<h3 id="proposed-resolution">Proposed resolution</h3>
<p>Set priority to -50, ExceptionJsonSubscriber is -75.</p>
<h3 id="ui-changes">User interface changes</h3>
> Related issue: [Issue #3470995](https://www.drupal.org/node/3470995)
issue