From aa3fe610a8c9f1cb53f2442ee7f35eddd1564511 Mon Sep 17 00:00:00 2001 From: Vladimir Vyachin Date: Sun, 5 May 2013 17:03:54 +0400 Subject: [PATCH] Fix log messages collection --- framework/logging/Target.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/logging/Target.php b/framework/logging/Target.php index e76e8ac..311334d 100644 --- a/framework/logging/Target.php +++ b/framework/logging/Target.php @@ -89,7 +89,7 @@ abstract class Target extends \yii\base\Component */ public function collect($messages, $final) { - $this->_messages = array($this->_messages, $this->filterMessages($messages)); + $this->_messages = array_merge($this->_messages, $this->filterMessages($messages)); $count = count($this->_messages); if ($count > 0 && ($final || $this->exportInterval > 0 && $count >= $this->exportInterval)) { if (($context = $this->getContextMessage()) !== '') {