1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-16 01:54:19 +02:00

Fixing the Undefined index error

This commit is contained in:
ipsq
2014-03-31 21:08:32 +02:00
parent 54bbb329b6
commit bc8525c87c

View File

@@ -129,11 +129,12 @@ class RavenHandler extends AbstractProcessingHandler
{ {
$options = array(); $options = array();
$options['level'] = $this->logLevels[$record['level']]; $options['level'] = $this->logLevels[$record['level']];
$options['tags'] = array();
if (!empty($record['tags'])) { if (!empty($record['tags'])) {
$options['tags'] = $record['tags']; $options['tags'] = array_merge($options['tags'], $record['tags']);
} }
if (!empty($record['context']['tags'])) { if (!empty($record['context']['tags'])) {
$options['tags'] = array_merge($record['context']['tags'], $options['tags']); $options['tags'] = array_merge($options['tags'], $record['context']['tags']);
unset($record['context']['tags']); unset($record['context']['tags']);
} }
if (!empty($record['context'])) { if (!empty($record['context'])) {