[twisted] use cubicweb.twisted.logger instead of print to notify when the instance is started
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 05 Aug 2009 10:52:09 +0200
changeset 2694 4303ff921a9b
parent 2693 3e91d1857bc5
child 2695 56439c45781c
child 2703 27c04321fc81
[twisted] use cubicweb.twisted.logger instead of print to notify when the instance is started
etwist/server.py
--- a/etwist/server.py	Wed Aug 05 08:40:20 2009 +0200
+++ b/etwist/server.py	Wed Aug 05 10:52:09 2009 +0200
@@ -365,7 +365,8 @@
     port = config['port'] or 8080
     reactor.listenTCP(port, channel.HTTPFactory(website))
     baseurl = config['base-url'] or config.default_base_url()
-    print "-> Instance started on", baseurl
+    logger = getLogger('cubicweb.twisted')
+    logger.info('instance started on %s', baseurl)
     if not debug:
         daemonize()
         if config['pid-file']: