mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-09 06:36:46 +02:00
Change datetime format from ISO 8601 to ATOM in ElasticsearchFormatter and related tests (#1942)
This commit is contained in:
@@ -167,7 +167,7 @@ class ElasticaHandlerTest extends TestCase
|
||||
$msg = $this->getRecord(Level::Error, 'log', context: ['foo' => 7, 'bar', 'class' => new \stdClass], datetime: new \DateTimeImmutable("@0"));
|
||||
|
||||
$expected = (array) $msg;
|
||||
$expected['datetime'] = $msg['datetime']->format(\DateTime::ISO8601);
|
||||
$expected['datetime'] = $msg['datetime']->format(\DateTime::ATOM);
|
||||
$expected['context'] = [
|
||||
'class' => '[object] (stdClass: {})',
|
||||
'foo' => 7,
|
||||
|
Reference in New Issue
Block a user