1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 21:26:43 +02:00

Change the way objects are normalized to avoid multi-levels of json encoding, fixes #560

This commit is contained in:
Jordi Boggiano
2016-05-26 19:21:47 +01:00
parent 3d7842ec1e
commit 2ff7afda31
5 changed files with 23 additions and 17 deletions

View File

@@ -34,7 +34,7 @@ class DoctrineCouchDBHandlerTest extends TestCase
$expected = array(
'message' => 'test',
'context' => array('data' => '[object] (stdClass: {})', 'foo' => 34),
'context' => array('data' => ['stdClass' => []], 'foo' => 34),
'level' => Logger::WARNING,
'level_name' => 'WARNING',
'channel' => 'test',