use several loggers for parts of weboob
This commit is contained in:
parent
a1a58c7c32
commit
84b4003bf4
14 changed files with 74 additions and 67 deletions
|
|
@ -18,8 +18,6 @@
|
|||
|
||||
from __future__ import with_statement
|
||||
|
||||
from logging import warning
|
||||
|
||||
from weboob.capabilities.messages import ICapMessages, Message, Thread
|
||||
from weboob.tools.backend import BaseBackend
|
||||
from weboob.tools.value import Value, ValuesDict
|
||||
|
|
@ -52,7 +50,7 @@ class FourChanBackend(BaseBackend, ICapMessages):
|
|||
id = thread.id
|
||||
|
||||
if not '.' in id:
|
||||
warning('Malformated ID (%s)' % id)
|
||||
self.logger.warning('Malformated ID (%s)' % id)
|
||||
return
|
||||
|
||||
board, thread_id = self._splitid(id)
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@
|
|||
from datetime import datetime
|
||||
|
||||
import re
|
||||
from logging import warning
|
||||
|
||||
from weboob.tools.browser import BasePage
|
||||
|
||||
|
|
@ -53,7 +52,7 @@ class BoardPage(BasePage):
|
|||
if m:
|
||||
self.board = m.group(1)
|
||||
else:
|
||||
warning('Unable to find board')
|
||||
self.logger.warning('Unable to find board')
|
||||
self.board = 'unknown'
|
||||
|
||||
forms = self.document.getroot().cssselect('form')
|
||||
|
|
@ -65,7 +64,7 @@ class BoardPage(BasePage):
|
|||
break
|
||||
|
||||
if form is None:
|
||||
warning('No delform :(')
|
||||
self.logger.warning('No delform :(')
|
||||
|
||||
article = None
|
||||
for div in form.getchildren():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue