]> git.mxchange.org Git - friendica.git/commitdiff
Replace Logger with DI::logger() in Factory classes
authorArt4 <art4@wlabs.de>
Mon, 13 Jan 2025 10:00:51 +0000 (10:00 +0000)
committerArt4 <art4@wlabs.de>
Mon, 13 Jan 2025 10:00:51 +0000 (10:00 +0000)
src/Factory/Api/Mastodon/Status.php

index 8cf9f3d8e70b0f7bab8ea2e6955007c009f62f9e..fc1715c1d5c4bc96f59d978c7f1da8068576fa41 100644 (file)
@@ -12,7 +12,6 @@ use Friendica\Content\ContactSelector;
 use Friendica\Content\Item as ContentItem;
 use Friendica\Content\Smilies;
 use Friendica\Content\Text\BBCode;
-use Friendica\Core\Logger;
 use Friendica\Core\Protocol;
 use Friendica\Database\Database;
 use Friendica\Database\DBA;
@@ -309,7 +308,7 @@ class Status extends BaseFactory
                        try {
                                $reshare = $this->createFromUriId($uriId, $uid, $display_quote, false, false)->toArray();
                        } catch (\Exception $exception) {
-                               Logger::info('Reshare not fetchable', ['uri-id' => $item['uri-id'], 'uid' => $uid, 'exception' => $exception]);
+                               DI::logger()->info('Reshare not fetchable', ['uri-id' => $item['uri-id'], 'uid' => $uid, 'exception' => $exception]);
                                $reshare = [];
                        }
                } else {
@@ -320,7 +319,7 @@ class Status extends BaseFactory
                        try {
                                $in_reply = $this->createFromUriId($item['thr-parent-id'], $uid, $display_quote, false, false)->toArray();
                        } catch (\Exception $exception) {
-                               Logger::info('Reply post not fetchable', ['uri-id' => $item['uri-id'], 'uid' => $uid, 'exception' => $exception]);
+                               DI::logger()->info('Reply post not fetchable', ['uri-id' => $item['uri-id'], 'uid' => $uid, 'exception' => $exception]);
                                $in_reply = [];
                        }
                } else {
@@ -361,7 +360,7 @@ class Status extends BaseFactory
                        try {
                                $quote = $this->createFromUriId($quote_id, $uid, false, false, false)->toArray();
                        } catch (\Exception $exception) {
-                               Logger::info('Quote not fetchable', ['uri-id' => $item['uri-id'], 'uid' => $uid, 'exception' => $exception]);
+                               DI::logger()->info('Quote not fetchable', ['uri-id' => $item['uri-id'], 'uid' => $uid, 'exception' => $exception]);
                                $quote = [];
                        }
                } else {