public function RequestSubscriber::onRequest in Raven: Sentry Integration 8.2
Same name and namespace in other branches
- 3.x src/EventSubscriber/RequestSubscriber.php \Drupal\raven\EventSubscriber\RequestSubscriber::onRequest()
Initializes Raven logger if fatal error logging is enabled.
File
- src/
EventSubscriber/ RequestSubscriber.php, line 38
Class
- RequestSubscriber
- Initializes Raven logger if fatal error logging is enabled.
Namespace
Drupal\raven\EventSubscriberCode
public function onRequest() {
if ($this->configFactory
->get('raven.settings')
->get('fatal_error_handler')) {
$this->container
->get('logger.raven');
}
}