1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 00:56:08 +02:00

Make sure we use \Throwable and not just \Exception

This commit is contained in:
Jordi Boggiano
2017-03-20 10:14:03 +01:00
parent b9256e99b6
commit 5e3be010d0
3 changed files with 7 additions and 8 deletions

View File

@@ -180,7 +180,7 @@ class RavenHandler extends AbstractProcessingHandler
$options['release'] = $this->release;
}
if (isset($record['context']['exception']) && ($record['context']['exception'] instanceof \Exception || (PHP_VERSION_ID >= 70000 && $record['context']['exception'] instanceof \Throwable))) {
if (isset($record['context']['exception']) && $record['context']['exception'] instanceof \Throwable) {
$options['extra']['message'] = $record['formatted'];
$this->ravenClient->captureException($record['context']['exception'], $options);
} else {