ApiExceptionSubscriber prevents ExceptionLoggingSubscriber from running

Created on 30 July 2025, 10 days ago

Overview

\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.

Proposed resolution

Set priority to -50, ExceptionJsonSubscriber is -75.

User interface changes

πŸ› Bug report
Status

Active

Version

1.0

Component

… to be triaged

Created by

πŸ‡ΊπŸ‡ΈUnited States mglaman WI, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024