Merge pull request #10748 from MrPetovan/task/10740-json-ld-debug
Improve compacting error logging in Util\JsonLD
This commit is contained in:
commit
2d4c669a20
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ class JsonLD
|
||||||
}
|
}
|
||||||
catch (Exception $e) {
|
catch (Exception $e) {
|
||||||
$compacted = false;
|
$compacted = false;
|
||||||
Logger::error('compacting error', ['line' => $e->getLine(), 'message' => $e->getMessage()]);
|
Logger::notice('compacting error', ['line' => $e->getLine(), 'exception' => $e]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$json = json_decode(json_encode($compacted, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE), true);
|
$json = json_decode(json_encode($compacted, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE), true);
|
||||||
|
|
Loading…
Reference in a new issue