You are here

public function Raven::onConsoleError in Raven: Sentry Integration 8.2

Same name and namespace in other branches
  1. 3.x src/Logger/Raven.php \Drupal\raven\Logger\Raven::onConsoleError()

Captures console error events.

File

src/Logger/Raven.php, line 334

Class

Raven
Logs events to Sentry.

Namespace

Drupal\raven\Logger

Code

public function onConsoleError(ConsoleErrorEvent $event) {
  if (!$this->client) {
    return;
  }
  $this->client
    ->captureException($event
    ->getError());
}