public function Raven::onConsoleError in Raven: Sentry Integration 3.x
Same name and namespace in other branches
- 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\LoggerCode
public function onConsoleError(ConsoleErrorEvent $event) {
if ($this
->getClient()) {
\Sentry\captureException($event
->getError());
}
}