You are here

public function Raven::onConsoleError in Raven: Sentry Integration 3.x

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

Captures console error events.

File

src/Logger/Raven.php, line 369

Class

Raven
Logs events to Sentry.

Namespace

Drupal\raven\Logger

Code

public function onConsoleError(ConsoleErrorEvent $event) {
  if ($this
    ->getClient()) {
    \Sentry\captureException($event
      ->getError());
  }
}