forked from tanner/qotnews
Add more logging
This commit is contained in:
parent
eb1137299d
commit
d7f0643bd7
|
@ -117,6 +117,7 @@ def update_story(story, is_manual=False):
|
||||||
story['text'] = get_article(story['url'])
|
story['text'] = get_article(story['url'])
|
||||||
if not story['text']: return False
|
if not story['text']: return False
|
||||||
|
|
||||||
|
logging.info('returning true')
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -183,8 +183,10 @@ def feed_thread():
|
||||||
else:
|
else:
|
||||||
database.del_ref(item['ref'])
|
database.del_ref(item['ref'])
|
||||||
logging.info('Removed ref {}'.format(item['ref']))
|
logging.info('Removed ref {}'.format(item['ref']))
|
||||||
|
else:
|
||||||
|
logging.info('Skipping index')
|
||||||
|
|
||||||
gevent.sleep(60)
|
gevent.sleep(6)
|
||||||
|
|
||||||
news_index += 1
|
news_index += 1
|
||||||
if news_index == FEED_LENGTH: news_index = 0
|
if news_index == FEED_LENGTH: news_index = 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user