mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-02-04 04:38:51 +00:00
Replace call for Logger with DI::logger() in ljpost addon
This commit is contained in:
parent
f08750199d
commit
9ed02034f1
1 changed files with 2 additions and 3 deletions
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
use Friendica\Content\Text\BBCode;
|
use Friendica\Content\Text\BBCode;
|
||||||
use Friendica\Core\Hook;
|
use Friendica\Core\Hook;
|
||||||
use Friendica\Core\Logger;
|
|
||||||
use Friendica\Core\Renderer;
|
use Friendica\Core\Renderer;
|
||||||
use Friendica\DI;
|
use Friendica\DI;
|
||||||
use Friendica\Model\Item;
|
use Friendica\Model\Item;
|
||||||
|
@ -200,7 +199,7 @@ function ljpost_send(array &$b)
|
||||||
</methodCall>
|
</methodCall>
|
||||||
EOT;
|
EOT;
|
||||||
|
|
||||||
Logger::debug('ljpost: data: ' . $xml);
|
DI::logger()->debug('ljpost: data: ' . $xml);
|
||||||
|
|
||||||
$x = '';
|
$x = '';
|
||||||
|
|
||||||
|
@ -208,6 +207,6 @@ EOT;
|
||||||
$x = DI::httpClient()->post($lj_blog, $xml, ['Content-Type' => 'text/xml'])->getBodyString();
|
$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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue