Replaced deprecated logger calls
This commit is contained in:
parent
4bb70d7593
commit
34cce68dc6
1 changed files with 3 additions and 3 deletions
|
@ -41,12 +41,12 @@ class Cron
|
||||||
if ($last) {
|
if ($last) {
|
||||||
$next = $last + ($poll_interval * 60);
|
$next = $last + ($poll_interval * 60);
|
||||||
if ($next > time()) {
|
if ($next > time()) {
|
||||||
Logger::log('cron intervall not reached');
|
Logger::notice('cron intervall not reached');
|
||||||
return;
|
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
|
// Fork the cron jobs in separate parts to avoid problems when one of them is crashing
|
||||||
Hook::fork($a->queue['priority'], "cron");
|
Hook::fork($a->queue['priority'], "cron");
|
||||||
|
@ -142,7 +142,7 @@ class Cron
|
||||||
// Update contact information
|
// Update contact information
|
||||||
Worker::add(PRIORITY_LOW, 'UpdatePublicContacts');
|
Worker::add(PRIORITY_LOW, 'UpdatePublicContacts');
|
||||||
|
|
||||||
Logger::log('cron: end');
|
Logger::notice('cron: end');
|
||||||
|
|
||||||
DI::config()->set('system', 'last_cron', time());
|
DI::config()->set('system', 'last_cron', time());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue