mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 19:23:45 +02:00
Log messages showing start and end of custom code
This commit is contained in:
parent
ec51cbb138
commit
cce5389fe1
1 changed files with 5 additions and 1 deletions
|
|
@ -86,7 +86,8 @@ def add_article(self, title, url, description="", date=None):
|
|||
date = self.publication_date
|
||||
if url and url not in self.urls:
|
||||
self.urls.append(url)
|
||||
self.log.info(
|
||||
self.
|
||||
info(
|
||||
"Page added: %s: %s: %s (%s)" % (date, title, description, url)
|
||||
)
|
||||
self.current_articles.append({
|
||||
|
|
@ -103,6 +104,7 @@ def page_index_append(self, section):
|
|||
|
||||
# Process the Index page to get the content for the ebook
|
||||
def parse_index(self):
|
||||
self.log.info('Private Eye: Parse Index: %s' % INDEX)
|
||||
self.page_index = []
|
||||
|
||||
soup = self.index_to_soup(self.INDEX)
|
||||
|
|
@ -228,5 +230,7 @@ def parse_index(self):
|
|||
Published fortnightly, the magazine is read by over 700,000 readers and costs just £1.80 an issue.""",
|
||||
date="")
|
||||
self.page_index_append("About Private Eye")
|
||||
|
||||
self.log.info('Private Eye: Parse Index complete')
|
||||
|
||||
return self.page_index
|
||||
|
|
|
|||
Loading…
Reference in a new issue