mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-08 14:16:42 +02:00
Pass context to RollBar
This commit is contained in:
@@ -54,7 +54,9 @@ class RollbarHandler extends AbstractProcessingHandler
|
|||||||
protected function write(array $record)
|
protected function write(array $record)
|
||||||
{
|
{
|
||||||
if (isset($record['context']['exception']) && $record['context']['exception'] instanceof Exception) {
|
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 {
|
} else {
|
||||||
$extraData = array(
|
$extraData = array(
|
||||||
'level' => $record['level'],
|
'level' => $record['level'],
|
||||||
|
Reference in New Issue
Block a user