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:
@@ -71,6 +71,7 @@ class LogstashV1Formatter extends NormalizerFormatter
|
||||
'message' => $record['message'],
|
||||
'host' => $this->systemName,
|
||||
'type' => $record['channel'],
|
||||
'channel' => $record['channel'],
|
||||
'level' => $record['level_name']
|
||||
);
|
||||
|
||||
|
@@ -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');
|
||||
|
||||
|
Reference in New Issue
Block a user