From 7f7f0eb10cd6c230156c44ea81eaca6a5179735e Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 22 Sep 2021 23:09:46 -0400 Subject: [PATCH] Improve compacting error logging in Util\JsonLD - Exceptions thrown by friendica/json-ld are nested and their string representation shows all the exception chain --- src/Util/JsonLD.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/JsonLD.php b/src/Util/JsonLD.php index f91d84ad5c..6ffe9a0a0f 100644 --- a/src/Util/JsonLD.php +++ b/src/Util/JsonLD.php @@ -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);