use several loggers for parts of weboob

This commit is contained in:
Romain Bignon 2010-10-30 16:09:33 +02:00
commit 84b4003bf4
14 changed files with 74 additions and 67 deletions

View file

@ -18,7 +18,6 @@
from __future__ import with_statement
import logging
import sys
import weboob
@ -97,7 +96,7 @@ class HaveSex(ReplApplication):
found = 1
if not found:
logging.error(u'Profile not found')
self.logger.error(u'Profile not found')
return True
@ -116,7 +115,7 @@ class HaveSex(ReplApplication):
except weboob.core.CallErrors, errors:
for backend, error, backtrace in errors:
if isinstance(error, OptimizationNotFound):
logging.error(u'Optimization "%s" not found' % optim)
self.logger.error(u'Optimization "%s" not found' % optim)
def do_start(self, *optims):
"""