1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 05:07:36 +02:00

Pass context to RollBar

This commit is contained in:
Moshe Brevda
2015-08-23 00:06:48 +03:00
parent d58755629d
commit a4033bf3d6

View File

@@ -54,7 +54,9 @@ class RollbarHandler extends AbstractProcessingHandler
protected function write(array $record)
{
if (isset($record['context']['exception']) && $record['context']['exception'] instanceof Exception) {
$this->rollbarNotifier->report_exception($record['context']['exception']);
$context = $record['context'];
unset($context['exception']);
$this->rollbarNotifier->report_exception($record['context']['exception'], $context);
} else {
$extraData = array(
'level' => $record['level'],