use logger instead of print in modules

This commit is contained in:
Romain Bignon 2012-05-13 10:44:48 +02:00
commit ca7fd3c7f2
4 changed files with 5 additions and 8 deletions

View file

@ -38,7 +38,7 @@ class IndexPage(BasePage):
url = title.attrib['href']
m = re.match('^http://www.pluzz.fr/([^/]+)\.html$', url)
if not m:
print ':( %s' % url
self.logger.debug('url %s does not match' % url)
continue
_id = m.group(1)
video = PluzzVideo(_id)