View Single Post
Old 05-24-2017, 07:28 AM   #324
anthony.burton4
Connoisseur
anthony.burton4 began at the beginning.
 
Posts: 64
Karma: 10
Join Date: Aug 2010
Device: iPhone
An example of some of the logging I added. I added as "Error" in case there was filtering going on, and info messages weren't being included.

Quote:
def get_book_url(self, identifiers):
log.error('GetBookURL')
goodreads_id = identifiers.get('goodreads', None)
if goodreads_id:
return ('goodreads', goodreads_id,
'%s/book/show/%s' % (Goodreads.BASE_URL, goodreads_id))

def create_query(self, log, title=None, authors=None, identifiers={}):
log.error('CreateQuery')
isbn = check_isbn(identifiers.get('isbn', None))
q = ''
if isbn is not None:
anthony.burton4 is offline   Reply With Quote