Comment out some debugs in XF/XF2.

This commit is contained in:
Jim Miller 2019-05-09 22:17:29 -05:00
parent 469410cb94
commit c8b7c4412e
2 changed files with 3 additions and 3 deletions

View file

@ -111,7 +111,7 @@ class BaseXenForo2ForumAdapter(BaseXenForoForumAdapter):
def cache_posts(self,topsoup):
for post in topsoup.find_all('article',{'class':'message--post'}):
logger.debug("Caching %s"%post['data-content'])
# logger.debug("Caching %s"%post['data-content'])
self.post_cache[post['data-content']] = post
def get_first_post(self,topsoup):

View file

@ -587,7 +587,7 @@ class BaseXenForoForumAdapter(BaseSiteAdapter):
def cache_posts(self,topsoup):
for post in topsoup.find_all('li',id=re.compile('post-[0-9]+')):
logger.debug("Caching %s"%post['id'])
# logger.debug("Caching %s"%post['id'])
self.post_cache[post['id']] = post
def get_cache_post(self,postid):
@ -599,7 +599,7 @@ class BaseXenForoForumAdapter(BaseSiteAdapter):
postid = "post-"+postid.split('/')[-2]
elif '#post-' in postid:
postid = postid.split('#')[1]
logger.debug("get cache %s %s"%(postid,postid in self.post_cache))
# logger.debug("get cache %s %s"%(postid,postid in self.post_cache))
return self.post_cache.get(postid,None)
# grab the text for an individual chapter.