]> git.mxchange.org Git - friendica-addons.git/commitdiff
Replace call for Logger with DI::logger() in randplace addon
authorArt4 <art4@wlabs.de>
Fri, 24 Jan 2025 11:56:09 +0000 (11:56 +0000)
committerArt4 <art4@wlabs.de>
Fri, 24 Jan 2025 11:56:09 +0000 (11:56 +0000)
randplace/randplace.php

index 5cb075970143e6ab20512873463361bc2e816d7d..89a75f98e40ec6e014dd1799617c7bc880e1f3e1 100644 (file)
@@ -20,7 +20,6 @@
  */
 
 use Friendica\Core\Hook;
-use Friendica\Core\Logger;
 use Friendica\Core\Renderer;
 use Friendica\DI;
 
@@ -40,7 +39,7 @@ function randplace_install()
        Hook::register('addon_settings', 'addon/randplace/randplace.php', 'randplace_settings');
        Hook::register('addon_settings_post', 'addon/randplace/randplace.php', 'randplace_settings_post');
 
-       Logger::notice("installed randplace");
+       DI::logger()->notice("installed randplace");
 }
 
 function randplace_uninstall()
@@ -50,7 +49,7 @@ function randplace_uninstall()
         *
         * Except hooks, they are all unregistered automatically and don't need to be unregistered manually.
         */
-       Logger::notice("removed randplace");
+       DI::logger()->notice("removed randplace");
 }
 
 function randplace_post_hook(&$item)
@@ -61,7 +60,7 @@ function randplace_post_hook(&$item)
         *      - A status post by a profile owner
         *      - The profile owner must have allowed our addon
         */
-       Logger::notice('randplace invoked');
+       DI::logger()->notice('randplace invoked');
 
        if (!DI::userSession()->getLocalUserId()) {
                /* non-zero if this is a logged in user of this system */