1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-10 07:06:40 +02:00

Fix a bug and a broken test.

Very embarrassing.
This commit is contained in:
Oliver Byford
2013-09-04 13:40:43 +01:00
parent 9f113ced3d
commit c67470515d
2 changed files with 2 additions and 1 deletions

View File

@@ -71,6 +71,7 @@ class LogstashV1Formatter extends NormalizerFormatter
'message' => $record['message'],
'host' => $this->systemName,
'type' => $record['channel'],
'channel' => $record['channel'],
'level' => $record['level_name']
);

View File

@@ -41,7 +41,7 @@ class LogstashV1FormatterTest extends \PHPUnit_Framework_TestCase
$this->assertEquals('meh', $message['channel']);
$this->assertEquals('ERROR', $message['level']);
$this->assertEquals('test', $message['type']);
$this->assertEquals('hostname', $message['source']);
$this->assertEquals('hostname', $message['host']);
$formatter = new LogstashV1Formatter('mysystem');