From 6869862579283a2867a86471f8d43cb35b231f28 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Tue, 12 Nov 2013 09:34:47 +0100 Subject: [PATCH] [UPDATE] Less verbose notification cron --- cronjobs/notifications.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cronjobs/notifications.php b/cronjobs/notifications.php index 9c9d6896..4bb80a80 100755 --- a/cronjobs/notifications.php +++ b/cronjobs/notifications.php @@ -44,7 +44,7 @@ if (empty($aWorkers)) { $aData['email'] = $user->getUserEmail($aData['username']); $log->logDebug(" " . $aWorker['username'] . "..."); 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'])) { $log->logDebug(" updated #" . $aNotification['id'] . " for " . $aWorker['username'] . " as inactive\n"); } else { - $log->logInfo(" failed to update #" . $aNotification['id'] . " for " . $aWorker['username'] . "\n"); + $log->logError(" failed to update #" . $aNotification['id'] . " for " . $aWorker['username'] . "\n"); } } else { $log->logDebug(" still inactive\n");