From: Mikael Nordfeldth Date: Thu, 15 Jan 2015 20:14:07 +0000 (+0100) Subject: removed debugging lines for FeedPoller X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=19f3cc112fc95212caaa1c75ed05cd76b9363af8;p=quix0rs-gnu-social.git removed debugging lines for FeedPoller --- diff --git a/plugins/FeedPoller/lib/feedpoll.php b/plugins/FeedPoller/lib/feedpoll.php index 1ac5fad0cf..2271e5c6a9 100644 --- a/plugins/FeedPoller/lib/feedpoll.php +++ b/plugins/FeedPoller/lib/feedpoll.php @@ -40,7 +40,6 @@ class FeedPoll { $orig = clone($feedsub); $item = array('id' => $feedsub->id); $qm->enqueue($item, self::QUEUE_CHECK); - common_debug('Enqueueing FeedPoll feeds, currently: '.$feedsub->uri); $feedsub->last_update = common_sql_now(); $feedsub->update($orig); } @@ -59,7 +58,6 @@ class FeedPoll { public function checkUpdates(FeedSub $feedsub) { $request = new HTTPClient(); - common_debug('Enqueueing FeedPoll feeds went well, now checking updates for: '.$feedsub->getUri()); $feed = $request->get($feedsub->uri); if (!$feed->isOk()) { throw new ServerException('FeedSub could not fetch id='.$feedsub->id.' (Error '.$feed->getStatus().': '.$feed->getBody()); diff --git a/plugins/FeedPoller/lib/feedpollqueuehandler.php b/plugins/FeedPoller/lib/feedpollqueuehandler.php index c80253dcba..c0d9e48207 100644 --- a/plugins/FeedPoller/lib/feedpollqueuehandler.php +++ b/plugins/FeedPoller/lib/feedpollqueuehandler.php @@ -16,7 +16,6 @@ class FeedPollQueueHandler extends QueueHandler public function handle($item) { - common_debug('Enqueueing FeedPoll feeds but actually running the queue handler!'); $feedsub = FeedSub::getKV('id', $item['id']); if (!$feedsub instanceof FeedSub) { // Removed from the feedsub table I guess @@ -27,15 +26,12 @@ class FeedPollQueueHandler extends QueueHandler return true; } - common_debug('Enqueueing FeedPoll feeds but actually checking updates'); try { FeedPoll::checkUpdates($feedsub); } catch (Exception $e) { common_log(LOG_ERR, "Failed to check feedsub id= ".$feedsub->id.' ("'.$e->getMessage().'")'); } - common_debug('Enqueueing FeedPoll feeds but actually done with '.$feedsub->id); - return true; } }