1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 21:26:43 +02:00

Add payload, too

This commit is contained in:
Moshe Brevda
2015-08-23 02:03:17 +03:00
parent a4033bf3d6
commit 2719cca77f

View File

@@ -56,7 +56,13 @@ class RollbarHandler extends AbstractProcessingHandler
if (isset($record['context']['exception']) && $record['context']['exception'] instanceof Exception) {
$context = $record['context'];
unset($context['exception']);
$this->rollbarNotifier->report_exception($record['context']['exception'], $context);
$payload = isset($context['payload']) ? $context['payload'] : [];
if ($context['payload']) {
unset($context['payload']);
}
$this->rollbarNotifier->report_exception($record['context']['exception'], $context, $payload);
} else {
$extraData = array(
'level' => $record['level'],