1
0
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:
Edvardas Daukšas 2015-11-18 10:59:57 +02:00
parent f86e643a58
commit c5465b8e1a

View File

@ -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
);
}