1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-19 11:21:27 +02:00

Unset the "datetime" parameter in LogglyFormatter

This commit is contained in:
Diego Saint Esteben
2015-12-18 17:08:31 -03:00
parent cb641a8a19
commit 4422cdc2b6
2 changed files with 2 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ class LogglyFormatterTest extends TestCase
$formatter = new LogglyFormatter();
$record = $this->getRecord();
$formatted_decoded = json_decode($formatter->format($record), true);
$this->assertArrayNotHasKey("datetime", $formatted_decoded);
$this->assertArrayHasKey("timestamp", $formatted_decoded);
$this->assertEquals(new \DateTime($formatted_decoded["timestamp"]), $record["datetime"]);
}