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

pull/1594/head
Art4 2025-01-24 11:46:04 +00:00
parent f08750199d
commit 9ed02034f1
1 changed files with 2 additions and 3 deletions

View File

@ -10,7 +10,6 @@
use Friendica\Content\Text\BBCode;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Model\Item;
@ -200,7 +199,7 @@ function ljpost_send(array &$b)
</methodCall>
EOT;
Logger::debug('ljpost: data: ' . $xml);
DI::logger()->debug('ljpost: data: ' . $xml);
$x = '';
@ -208,6 +207,6 @@ EOT;
$x = DI::httpClient()->post($lj_blog, $xml, ['Content-Type' => 'text/xml'])->getBodyString();
}
Logger::info('posted to livejournal: ' . $x);
DI::logger()->info('posted to livejournal: ' . $x);
}
}