Core Logger
implement log() function. more to squash Core Logger Class implement log() function
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
*/
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\PConfig;
|
||||
|
||||
function planets_install() {
|
||||
@@ -32,7 +33,7 @@ function planets_install() {
|
||||
Addon::registerHook('addon_settings', 'addon/planets/planets.php', 'planets_settings');
|
||||
Addon::registerHook('addon_settings_post', 'addon/planets/planets.php', 'planets_settings_post');
|
||||
|
||||
logger("installed planets");
|
||||
Logger::log("installed planets");
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +52,7 @@ function planets_uninstall() {
|
||||
Addon::unregisterHook('addon_settings_post', 'addon/planets/planets.php', 'planets_settings_post');
|
||||
|
||||
|
||||
logger("removed planets");
|
||||
Logger::log("removed planets");
|
||||
}
|
||||
|
||||
|
||||
@@ -67,7 +68,7 @@ function planets_post_hook($a, &$item) {
|
||||
*
|
||||
*/
|
||||
|
||||
logger('planets invoked');
|
||||
Logger::log('planets invoked');
|
||||
|
||||
if(! local_user()) /* non-zero if this is a logged in user of this system */
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user