Core Logger
implement log() function. more to squash Core Logger Class implement log() function
This commit is contained in:
@@ -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;
|
||||
@@ -221,12 +222,12 @@ function ijpost_send(&$a, &$b)
|
||||
|
||||
EOT;
|
||||
|
||||
logger('ijpost: data: ' . $xml, LOGGER_DATA);
|
||||
Logger::log('ijpost: data: ' . $xml, LOGGER_DATA);
|
||||
|
||||
if ($ij_blog !== 'test') {
|
||||
$x = Network::post($ij_blog, $xml, ["Content-Type: text/xml"])->getBody();
|
||||
}
|
||||
logger('posted to insanejournal: ' . $x ? $x : '', LOGGER_DEBUG);
|
||||
Logger::log('posted to insanejournal: ' . $x ? $x : '', LOGGER_DEBUG);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user