Skip to content

Commit

Permalink
Update tests and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Jan 11, 2013
1 parent 9800793 commit 47eb599
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.mdown
@@ -1,6 +1,7 @@
* 1.3.1 (2013--)
* 1.3.1 (2013-01-11)

* Fixed LogstashFormatter to be usable with stream handlers
* Fixed GelfMessageFormatter levels on Windows

* 1.3.0 (2013-01-08)

Expand Down
2 changes: 1 addition & 1 deletion tests/Monolog/Formatter/GelfMessageFormatterTest.php
Expand Up @@ -47,7 +47,7 @@ public function testDefaultFormatter()
$this->assertEquals('meh', $message->getFacility());
$this->assertEquals(null, $message->getLine());
$this->assertEquals(null, $message->getFile());
$this->assertEquals(LOG_ERR, $message->getLevel());
$this->assertEquals(3, $message->getLevel());
$this->assertNotEmpty($message->getHost());

$formatter = new GelfMessageFormatter('mysystem');
Expand Down
4 changes: 2 additions & 2 deletions tests/Monolog/Handler/GelfHandlerTest.php
Expand Up @@ -55,7 +55,7 @@ public function testDebug()
$record = $this->getRecord(Logger::DEBUG, "A test debug message");
$handler->handle($record);

$this->assertEquals(LOG_DEBUG, $messagePublisher->lastMessage->getLevel());
$this->assertEquals(7, $messagePublisher->lastMessage->getLevel());
$this->assertEquals('test', $messagePublisher->lastMessage->getFacility());
$this->assertEquals($record['message'], $messagePublisher->lastMessage->getShortMessage());
$this->assertEquals(null, $messagePublisher->lastMessage->getFullMessage());
Expand All @@ -69,7 +69,7 @@ public function testWarning()
$record = $this->getRecord(Logger::WARNING, "A test warning message");
$handler->handle($record);

$this->assertEquals(LOG_WARNING, $messagePublisher->lastMessage->getLevel());
$this->assertEquals(4, $messagePublisher->lastMessage->getLevel());
$this->assertEquals('test', $messagePublisher->lastMessage->getFacility());
$this->assertEquals($record['message'], $messagePublisher->lastMessage->getShortMessage());
$this->assertEquals(null, $messagePublisher->lastMessage->getFullMessage());
Expand Down

0 comments on commit 47eb599

Please sign in to comment.