Replace call for Logger with DI::logger() in libertree addon

This commit is contained in:
Art4 2025-01-24 11:45:25 +00:00
parent a488f25131
commit f08750199d

View file

@ -8,7 +8,6 @@
use Friendica\Content\Text\BBCode;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;
@ -130,7 +129,7 @@ function libertree_post_local(array &$b)
function libertree_send(array &$b)
{
Logger::notice('libertree_send: invoked');
DI::logger()->notice('libertree_send: invoked');
if ($b['deleted'] || ($b['private'] == Item::PRIVATE) || ($b['created'] !== $b['edited'])) {
return;
@ -196,6 +195,6 @@ function libertree_send(array &$b)
];
$result = DI::httpClient()->post($ltree_blog, $params)->getBodyString();
Logger::notice('libertree: ' . $result);
DI::logger()->notice('libertree: ' . $result);
}
}