]> git.mxchange.org Git - friendica.git/commitdiff
Replaced deprecated logger calls
authorMichael <heluecht@pirati.ca>
Tue, 1 Sep 2020 08:11:42 +0000 (08:11 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 1 Sep 2020 08:11:42 +0000 (08:11 +0000)
src/Worker/Cron.php

index ad50707c49dd378ba056332153a40dc62beb45fd..3eb93ba26d802049550c30fb9fc018f34ee7f154 100644 (file)
@@ -41,12 +41,12 @@ class Cron
                if ($last) {
                        $next = $last + ($poll_interval * 60);
                        if ($next > time()) {
-                               Logger::log('cron intervall not reached');
+                               Logger::notice('cron intervall not reached');
                                return;
                        }
                }
 
-               Logger::log('cron: start');
+               Logger::notice('cron: start');
 
                // Fork the cron jobs in separate parts to avoid problems when one of them is crashing
                Hook::fork($a->queue['priority'], "cron");
@@ -142,7 +142,7 @@ class Cron
                // Update contact information
                Worker::add(PRIORITY_LOW, 'UpdatePublicContacts');              
 
-               Logger::log('cron: end');
+               Logger::notice('cron: end');
 
                DI::config()->set('system', 'last_cron', time());