mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
Core Logger
implement log() function. more to squash Core Logger Class implement log() function
This commit is contained in:
parent
b53157370a
commit
49eff56e5d
46 changed files with 348 additions and 302 deletions
|
@ -11,6 +11,7 @@
|
|||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
use Friendica\Util\Network;
|
||||
|
@ -231,12 +232,12 @@ function ljpost_send(&$a,&$b) {
|
|||
|
||||
EOT;
|
||||
|
||||
logger('ljpost: data: ' . $xml, LOGGER_DATA);
|
||||
Logger::log('ljpost: data: ' . $xml, LOGGER_DATA);
|
||||
|
||||
if ($lj_blog !== 'test') {
|
||||
$x = Network::post($lj_blog, $xml, ["Content-Type: text/xml"])->getBody();
|
||||
}
|
||||
logger('posted to livejournal: ' . ($x) ? $x : '', LOGGER_DEBUG);
|
||||
Logger::log('posted to livejournal: ' . ($x) ? $x : '', LOGGER_DEBUG);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue