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

pull/1594/head
Art4 2025-01-24 11:58:32 +00:00
parent e4d14cab62
commit dd775645d4
1 changed files with 2 additions and 3 deletions

View File

@ -9,7 +9,6 @@
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;
@ -257,13 +256,13 @@ function wppost_send(array &$b)
EOT;
Logger::debug('wppost: data: ' . $xml);
DI::logger()->debug('wppost: data: ' . $xml);
$x = '';
if ($wp_blog !== 'test') {
$x = DI::httpClient()->post($wp_blog, $xml)->getBodyString();
}
Logger::info('posted to wordpress: ' . $x);
DI::logger()->info('posted to wordpress: ' . $x);
}
}