[UPDATE] Less verbose notification cron
This commit is contained in:
parent
3676dbe9bf
commit
6869862579
@ -44,7 +44,7 @@ if (empty($aWorkers)) {
|
|||||||
$aData['email'] = $user->getUserEmail($aData['username']);
|
$aData['email'] = $user->getUserEmail($aData['username']);
|
||||||
$log->logDebug(" " . $aWorker['username'] . "...");
|
$log->logDebug(" " . $aWorker['username'] . "...");
|
||||||
if (!$notification->sendNotification($aWorker['account_id'], 'idle_worker', $aData))
|
if (!$notification->sendNotification($aWorker['account_id'], 'idle_worker', $aData))
|
||||||
$log->logError(" Failed sending notifications: " . $notification->getCronError() . "\n");
|
$log->logDebug(" Failed sending notifications: " . $notification->getCronError() . "\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ if (!empty($aNotifications)) {
|
|||||||
if ($notification->setInactive($aNotification['id'])) {
|
if ($notification->setInactive($aNotification['id'])) {
|
||||||
$log->logDebug(" updated #" . $aNotification['id'] . " for " . $aWorker['username'] . " as inactive\n");
|
$log->logDebug(" updated #" . $aNotification['id'] . " for " . $aWorker['username'] . " as inactive\n");
|
||||||
} else {
|
} else {
|
||||||
$log->logInfo(" failed to update #" . $aNotification['id'] . " for " . $aWorker['username'] . "\n");
|
$log->logError(" failed to update #" . $aNotification['id'] . " for " . $aWorker['username'] . "\n");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$log->logDebug(" still inactive\n");
|
$log->logDebug(" still inactive\n");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user