mirror of
https://github.com/Seldaek/monolog.git
synced 2025-01-17 20:58:32 +01:00
Pass payload information to RollbarHandler on report_message.
This commit is contained in:
parent
f86e643a58
commit
c5465b8e1a
@ -72,10 +72,18 @@ class RollbarHandler extends AbstractProcessingHandler
|
||||
'datetime' => $record['datetime']->format('U'),
|
||||
);
|
||||
|
||||
$context = $record['context'];
|
||||
$payload = array();
|
||||
if (isset($context['payload'])) {
|
||||
$payload = $context['payload'];
|
||||
unset($context['payload']);
|
||||
}
|
||||
|
||||
$this->rollbarNotifier->report_message(
|
||||
$record['message'],
|
||||
$record['level_name'],
|
||||
array_merge($record['context'], $record['extra'], $extraData)
|
||||
array_merge($record['context'], $record['extra'], $extraData),
|
||||
$payload
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user