diff options
Diffstat (limited to 'lib/Cron')
-rw-r--r-- | lib/Cron/NotificationCron.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Cron/NotificationCron.php b/lib/Cron/NotificationCron.php index 1ac9f832..526484df 100644 --- a/lib/Cron/NotificationCron.php +++ b/lib/Cron/NotificationCron.php @@ -23,8 +23,10 @@ namespace OCA\Polls\Cron; +use Exception; + use OCP\ILogger; -use OC\BackgroundJob\TimedJob; +use OCP\BackgroundJob\TimedJob; use OCA\Polls\Service\MailService; @@ -48,13 +50,10 @@ class NotificationCron extends TimedJob { /** * run * @param string $token - * @return null */ protected function run($arguments) { if ($this->mailService->sendNotifications()) { $this->logger->debug('Notifications sent'); - } else { - $this->logger->alert('error while sending notifications'); } } |