From d23358a2f7eb138473fdfb51006a89081165e867 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Sun, 27 Oct 2013 02:54:21 +0200 Subject: [PATCH] [UPDATE] Reduce notification info logging --- cronjobs/notifications.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cronjobs/notifications.php b/cronjobs/notifications.php index 8e3ac98a..4166a16e 100755 --- a/cronjobs/notifications.php +++ b/cronjobs/notifications.php @@ -45,7 +45,7 @@ if (empty($aWorkers)) { $aData['subject'] = 'IDLE Worker : ' . $aWorker['username']; $aData['worker'] = $aWorker['username']; $aData['email'] = $user->getUserEmail($aData['username']); - $log->logInfo(" " . $aWorker['username'] . "..."); + $log->logDebug(" " . $aWorker['username'] . "..."); if (!$notification->sendNotification($aWorker['account_id'], 'idle_worker', $aData)) $log->logError(" Failed sending notifications: " . $notification->getError() . "\n"); } @@ -60,15 +60,15 @@ if (!empty($aNotifications)) { foreach ($aNotifications as $aNotification) { $aData = json_decode($aNotification['data'], true); $aWorker = $worker->getWorker($aData['id']); - $log->logInfo(" " . $aWorker['username'] . " ..."); + $log->logDebug(" " . $aWorker['username'] . " ..."); if ($aWorker['hashrate'] > 0) { if ($notification->setInactive($aNotification['id'])) { - $log->logInfo(" updated #" . $aNotification['id'] . " for " . $aWorker['username'] . " as inactive\n"); + $log->logDebug(" updated #" . $aNotification['id'] . " for " . $aWorker['username'] . " as inactive\n"); } else { $log->logInfo(" failed to update #" . $aNotification['id'] . " for " . $aWorker['username'] . "\n"); } } else { - $log->logInfo(" still inactive\n"); + $log->logDebug(" still inactive\n"); } } } else {