]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/JsonLD.php
Log function
[friendica.git] / src / Util / JsonLD.php
index 793f5e9d1280c727cd9dba8782c07ac8fd1a7225..2d16172b78a2c5bd140c376ef97a656cce79e580 100644 (file)
@@ -5,6 +5,7 @@
 namespace Friendica\Util;
 
 use Friendica\Core\Cache;
+use Friendica\Core\Logger;
 use Exception;
 
 /**
@@ -33,7 +34,7 @@ class JsonLD
                }
 
                if ($recursion > 5) {
-                       logger('jsonld bomb detected at: ' . $url);
+                       Logger::log('jsonld bomb detected at: ' . $url);
                        exit();
                }
 
@@ -65,7 +66,7 @@ class JsonLD
                }
                catch (Exception $e) {
                        $normalized = false;
-                       logger('normalise error:' . print_r($e, true), LOGGER_DEBUG);
+                       Logger::log('normalise error:' . print_r($e, true), LOGGER_DEBUG);
                }
 
                return $normalized;
@@ -98,7 +99,7 @@ class JsonLD
                }
                catch (Exception $e) {
                        $compacted = false;
-                       logger('compacting error:' . print_r($e, true), LOGGER_DEBUG);
+                       Logger::log('compacting error:' . print_r($e, true), LOGGER_DEBUG);
                }
 
                return json_decode(json_encode($compacted, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE), true);