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

index 7ce30086e306af559823e9a790cc230f84a0c751..7bad85dc9330dc52fb32a44f441ffbdf766cbde3 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;
@@ -185,12 +184,12 @@ function dwpost_send(array &$b)
 
 EOT;
 
-               Logger::debug('dwpost: data: ' . $xml);
+               DI::logger()->debug('dwpost: data: ' . $xml);
 
                if ($dw_blog !== 'test') {
                        $x = DI::httpClient()->post($dw_blog, $xml, ['Content-Type' => 'text/xml'])->getBodyString();
                }
 
-               Logger::info('posted to dreamwidth: ' . ($x) ? $x : '');
+               DI::logger()->info('posted to dreamwidth: ' . ($x) ? $x : '');
        }
 }