1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-09 14:46:46 +02:00

Ignore json_encode errors

This commit is contained in:
wiistriker
2013-10-23 19:50:05 +11:00
parent 620922356a
commit a8bbda7310

View File

@@ -94,7 +94,7 @@ class LineFormatter extends NormalizerFormatter
$data = $this->normalize($data); $data = $this->normalize($data);
if (version_compare(PHP_VERSION, '5.4.0', '>=')) { if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
return $this->toJson($data); return $this->toJson($data, false);
} }
return str_replace('\\/', '/', json_encode($data)); return str_replace('\\/', '/', json_encode($data));