From bc8525c87cba567e46977185d73555b73d1822e5 Mon Sep 17 00:00:00 2001 From: ipsq Date: Mon, 31 Mar 2014 21:08:32 +0200 Subject: [PATCH] Fixing the Undefined index error --- src/Monolog/Handler/RavenHandler.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Monolog/Handler/RavenHandler.php b/src/Monolog/Handler/RavenHandler.php index 00bf1238..e4d19b0e 100644 --- a/src/Monolog/Handler/RavenHandler.php +++ b/src/Monolog/Handler/RavenHandler.php @@ -129,11 +129,12 @@ class RavenHandler extends AbstractProcessingHandler { $options = array(); $options['level'] = $this->logLevels[$record['level']]; + $options['tags'] = array(); if (!empty($record['tags'])) { - $options['tags'] = $record['tags']; + $options['tags'] = array_merge($options['tags'], $record['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']); } if (!empty($record['context'])) {