From 469d3e6d61c8c20089be5da8ce7187db6507f77b Mon Sep 17 00:00:00 2001 From: Art4 Date: Fri, 24 Jan 2025 11:47:40 +0000 Subject: [PATCH] Replace call for Logger with DI::logger() in planets addon --- planets/planets.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/planets/planets.php b/planets/planets.php index d96e33a6..8849010a 100644 --- a/planets/planets.php +++ b/planets/planets.php @@ -8,7 +8,6 @@ */ use Friendica\Core\Hook; -use Friendica\Core\Logger; use Friendica\Core\Renderer; use Friendica\DI; @@ -28,7 +27,7 @@ function planets_install() Hook::register('addon_settings', 'addon/planets/planets.php', 'planets_settings'); Hook::register('addon_settings_post', 'addon/planets/planets.php', 'planets_settings_post'); - Logger::notice("installed planets"); + DI::logger()->notice("installed planets"); } /** @@ -39,7 +38,7 @@ function planets_install() */ function planets_post_hook(&$item) { - Logger::notice('planets invoked'); + DI::logger()->notice('planets invoked'); if (!DI::userSession()->getLocalUserId()) { /* non-zero if this is a logged in user of this system */