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:
@@ -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'],
|
||||
|
Reference in New Issue
Block a user