mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-13 16:44:23 +02:00
Fix gelf message formatter failing to handle context/extra numeric keys, fixes #1932
This commit is contained in:
@@ -67,7 +67,7 @@ class GelfMessageFormatterTest extends MonologTestCase
|
||||
channel: 'meh',
|
||||
context: ['from' => 'logger'],
|
||||
datetime: new \DateTimeImmutable("@0"),
|
||||
extra: ['file' => 'test', 'line' => 14],
|
||||
extra: ['file' => 'test', 'line' => 14, 0 => 'foo'],
|
||||
);
|
||||
|
||||
$message = $formatter->format($record);
|
||||
|
Reference in New Issue
Block a user