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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user