]> git.mxchange.org Git - friendica-addons.git/commitdiff
Replace call for Logger with DI::logger() in ijpost addon
authorArt4 <art4@wlabs.de>
Fri, 24 Jan 2025 11:41:02 +0000 (11:41 +0000)
committerArt4 <art4@wlabs.de>
Fri, 24 Jan 2025 11:41:02 +0000 (11:41 +0000)
ijpost/ijpost.php

index 37c3cd45edea2d6d0534e6e5ca17292050059607..9fe502afd99efad396ba02ef728e381fe63cbaff 100644 (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;
@@ -178,11 +177,11 @@ function ijpost_send(array &$b)
 
 EOT;
 
-               Logger::debug('ijpost: data: ' . $xml);
+               DI::logger()->debug('ijpost: data: ' . $xml);
 
                if ($ij_blog !== 'test') {
                        $x = DI::httpClient()->post($ij_blog, $xml, ['Content-Type' => 'text/xml'])->getBodyString();
                }
-               Logger::info('posted to insanejournal: ' . $x ? $x : '');
+               DI::logger()->info('posted to insanejournal: ' . $x ? $x : '');
        }
 }