Skip to content

Commit

Permalink
Fixing formatting of logging of objects implementing JsonSerializable…
Browse files Browse the repository at this point in the history
…: printing unescaped unicode characters.
  • Loading branch information
jzdunek committed Jun 7, 2017
1 parent 87c9df9 commit 57398a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Log/Engine/BaseLog.php
Expand Up @@ -100,7 +100,7 @@ protected function _format($data, array $context = [])
}

if ($object && $data instanceof JsonSerializable) {
return json_encode($data);
return json_encode($data, JSON_UNESCAPED_UNICODE);
}

return print_r($data, true);
Expand Down

0 comments on commit 57398a3

Please sign in to comment.