mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Log messages showing start and end of custom code
This commit is contained in:
parent
ec51cbb138
commit
cce5389fe1
@ -86,7 +86,8 @@ class PrivateEyeRecipe(BasicNewsRecipe):
|
|||||||
date = self.publication_date
|
date = self.publication_date
|
||||||
if url and url not in self.urls:
|
if url and url not in self.urls:
|
||||||
self.urls.append(url)
|
self.urls.append(url)
|
||||||
self.log.info(
|
self.
|
||||||
|
info(
|
||||||
"Page added: %s: %s: %s (%s)" % (date, title, description, url)
|
"Page added: %s: %s: %s (%s)" % (date, title, description, url)
|
||||||
)
|
)
|
||||||
self.current_articles.append({
|
self.current_articles.append({
|
||||||
@ -103,6 +104,7 @@ class PrivateEyeRecipe(BasicNewsRecipe):
|
|||||||
|
|
||||||
# Process the Index page to get the content for the ebook
|
# Process the Index page to get the content for the ebook
|
||||||
def parse_index(self):
|
def parse_index(self):
|
||||||
|
self.log.info('Private Eye: Parse Index: %s' % INDEX)
|
||||||
self.page_index = []
|
self.page_index = []
|
||||||
|
|
||||||
soup = self.index_to_soup(self.INDEX)
|
soup = self.index_to_soup(self.INDEX)
|
||||||
@ -229,4 +231,6 @@ It offers a unique blend of humour, social and political observations and invest
|
|||||||
date="")
|
date="")
|
||||||
self.page_index_append("About Private Eye")
|
self.page_index_append("About Private Eye")
|
||||||
|
|
||||||
|
self.log.info('Private Eye: Parse Index complete')
|
||||||
|
|
||||||
return self.page_index
|
return self.page_index
|
||||||
|
Loading…
x
Reference in New Issue
Block a user