Commit ab28ce2d by Qiang Xue

Merge branch 'master' of https://github.com/yiisoft/yii2

parents af72a948 75d8e73a
...@@ -89,7 +89,7 @@ abstract class Target extends \yii\base\Component ...@@ -89,7 +89,7 @@ abstract class Target extends \yii\base\Component
*/ */
public function collect($messages, $final) 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); $count = count($this->_messages);
if ($count > 0 && ($final || $this->exportInterval > 0 && $count >= $this->exportInterval)) { if ($count > 0 && ($final || $this->exportInterval > 0 && $count >= $this->exportInterval)) {
if (($context = $this->getContextMessage()) !== '') { if (($context = $this->getContextMessage()) !== '') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment