mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-23 09:36:11 +02:00
Make sure we use \Throwable and not just \Exception
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
namespace Monolog\Handler;
|
||||
|
||||
use RollbarNotifier;
|
||||
use Exception;
|
||||
use Throwable;
|
||||
use Monolog\Logger;
|
||||
|
||||
/**
|
||||
@@ -96,7 +96,7 @@ class RollbarHandler extends AbstractProcessingHandler
|
||||
'datetime' => $record['datetime']->format('U'),
|
||||
]);
|
||||
|
||||
if (isset($context['exception']) && $context['exception'] instanceof Exception) {
|
||||
if (isset($context['exception']) && $context['exception'] instanceof Throwable) {
|
||||
$payload['level'] = $context['level'];
|
||||
$exception = $context['exception'];
|
||||
unset($context['exception']);
|
||||
|
Reference in New Issue
Block a user