Add more logging
This commit is contained in:
		@@ -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__':
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user