Replace Logger with $this->logger in Module Mastodon classes

This commit is contained in:
Art4 2025-01-13 11:53:38 +00:00
parent 6f91b16403
commit b0a5494a8f
12 changed files with 18 additions and 35 deletions

View file

@ -7,7 +7,6 @@
namespace Friendica\Module\Api\Mastodon\Timelines;
use Friendica\Core\Logger;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Item;
@ -79,7 +78,7 @@ class Home extends BaseApi
$this->updateBoundaries($status, $item, $request['friendica_order']);
$statuses[] = $status;
} catch (\Throwable $th) {
Logger::info('Post not fetchable', ['uri-id' => $item['uri-id'], 'uid' => $uid, 'error' => $th]);
$this->logger->info('Post not fetchable', ['uri-id' => $item['uri-id'], 'uid' => $uid, 'error' => $th]);
}
}
DBA::close($items);