launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #05166
[Merge] lp:~allenap/txlongpoll/txlongpoll-script-alt into lp:txlongpoll
Gavin Panella has proposed merging lp:~allenap/txlongpoll/txlongpoll-script-alt into lp:txlongpoll.
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~allenap/txlongpoll/txlongpoll-script-alt/+merge/78079
Make the bin/txlongpoll script log to /dev/null (the txlongpoll plugin
sorts out logging separately) and selects the txlongpoll
plugin. Without this bin/txlongpoll is a synonym for twistd.
--
https://code.launchpad.net/~allenap/txlongpoll/txlongpoll-script-alt/+merge/78079
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~allenap/txlongpoll/txlongpoll-script-alt into lp:txlongpoll.
=== modified file 'buildout.cfg'
--- buildout.cfg 2011-09-27 10:20:43 +0000
+++ buildout.cfg 2011-10-04 11:05:27 +0000
@@ -23,7 +23,7 @@
recipe = zc.recipe.egg:scripts
interpreter = py
eggs = txlongpoll
-entry-points = txlongpoll=twisted.scripts.twistd:run
+entry-points = txlongpoll=txlongpoll:run
[tags]
recipe = z3c.recipe.tag:tags
=== modified file 'txlongpoll/__init__.py'
--- txlongpoll/__init__.py 2011-06-28 16:21:03 +0000
+++ txlongpoll/__init__.py 2011-10-04 11:05:27 +0000
@@ -1,2 +1,8 @@
# Copyright 2005-2011 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
+
+def run():
+ from sys import argv
+ argv[1:1] = ["--logfile=/dev/null", "txlongpoll"]
+ import twisted.scripts.twistd
+ twisted.scripts.twistd.run()