Improve compacting error logging in Util\JsonLD

- Exceptions thrown by friendica/json-ld are nested and their string representation shows all the exception chain
This commit is contained in:
Hypolite Petovan 2021-09-22 23:09:46 -04:00
parent c9e30ac2c0
commit 7f7f0eb10c
1 changed files with 1 additions and 1 deletions

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