use python logging
This commit is contained in:
parent
d9346e8328
commit
6a8a7b956d
27 changed files with 174 additions and 141 deletions
|
|
@ -7,9 +7,12 @@ import stdnum.isbn
|
|||
|
||||
from .utils import find_isbns
|
||||
|
||||
import logging
|
||||
logger = logging.getLogger('meta.duckduckgo')
|
||||
|
||||
|
||||
def find(title, author=None, publisher=None, date=None):
|
||||
print 'duckduckgo.find', title, author, publisher, date
|
||||
logger.debug('find %s %s %s %s', title, author, publisher, date)
|
||||
query = title
|
||||
if author:
|
||||
if isinstance(author, list):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue