Skip to content

Commit

Permalink
Wrong monolog usage error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kop committed Jul 2, 2014
1 parent f009d71 commit 99f951c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion LogentriesTarget.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ public function export()

foreach ($this->messages as $message) {
if (array_key_exists($message[1], $this->_monologLevels)) {
$monolog->addRecord($this->_monologLevels[$message[1]], $this->formatMessage($message), $message[4]);
$monolog->addRecord(
$this->_monologLevels[$message[1]],
$this->formatMessage($message),
is_array($message[4]) ? $message[4] : []
);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ messages to the [Logentries log management service](https://logentries.com/).
[![Latest Stable Version](https://poser.pugx.org/kop/yii2-logentries/v/stable.svg)](https://packagist.org/packages/kop/yii2-logentries)
[![Code Climate](https://codeclimate.com/github/kop/yii2-logentries.png)](https://codeclimate.com/github/kop/yii2-logentries)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/kop/yii2-logentries/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/kop/yii2-logentries/?branch=master)
[![Version Eye](https://www.versioneye.com/php/kop:yii2-logentries/badge.svg)](https://www.versioneye.com/php/kop:yii2-logentries)
[![Version Eye](https://www.versioneye.com/user/projects/53b356900d5bb8f82a00003d/badge.svg?style=flat)](https://www.versioneye.com/user/projects/53b356900d5bb8f82a00003d)
[![License](https://poser.pugx.org/kop/yii2-logentries/license.svg)](https://packagist.org/packages/kop/yii2-logentries)

## Requirements
Expand Down

0 comments on commit 99f951c

Please sign in to comment.