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
|
@ -165,7 +165,7 @@ class JsonLD
|
|||
}
|
||||
catch (Exception $e) {
|
||||
$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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user