use logging instead of printing to stderr
This commit is contained in:
parent
7d698192f3
commit
683979a839
2 changed files with 16 additions and 5 deletions
|
|
@ -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)')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue