Add more logging

This commit is contained in:
Tanner Collin 2020-07-04 22:39:38 +00:00
parent eb1137299d
commit d7f0643bd7
2 changed files with 4 additions and 1 deletions

View File

@ -117,6 +117,7 @@ def update_story(story, is_manual=False):
story['text'] = get_article(story['url'])
if not story['text']: return False
logging.info('returning true')
return True
if __name__ == '__main__':

View File

@ -183,8 +183,10 @@ def feed_thread():
else:
database.del_ref(item['ref'])
logging.info('Removed ref {}'.format(item['ref']))
else:
logging.info('Skipping index')
gevent.sleep(60)
gevent.sleep(6)
news_index += 1
if news_index == FEED_LENGTH: news_index = 0