use logging instead of printing to stderr

This commit is contained in:
Christophe Benz 2010-05-11 16:59:48 +02:00
commit 683979a839
2 changed files with 16 additions and 5 deletions

View file

@ -20,10 +20,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
from __future__ import with_statement
import logging
import sys
from weboob.tools.application import PromptApplication
from weboob.capabilities.dating import ICapDating
__all__ = ['HaveSex']
class HaveSex(PromptApplication):
APPNAME = 'havesex'
VERSION = '1.0'
@ -77,4 +83,4 @@ class HaveSex(PromptApplication):
elif action == 'stop':
self.service('Stopping walker', 'stop_profiles_walker')
else:
print >>sys.stderr, 'Syntax: walker (start|stop)'
logging.error(u'Syntax: walker (start|stop)')