1
0
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:
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

@@ -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']);