Merge pull request #10748 from MrPetovan/task/10740-json-ld-debug

Improve compacting error logging in Util\JsonLD
This commit is contained in:
Michael Vogel 2021-09-23 17:50:43 +02:00 committed by GitHub
commit 2d4c669a20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);