[pypy-commit] buildbot 0.8.4-compat: kill yet another hack, it's not longer needed. Now the default log file is http.log; we used httpd.log, but it's good enough

antocuni noreply at buildbot.pypy.org
Sun Aug 7 20:54:51 CEST 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: 0.8.4-compat
Changeset: r566:9784662071eb
Date: 2011-08-07 20:56 +0200
http://bitbucket.org/pypy/buildbot/changeset/9784662071eb/

Log:	kill yet another hack, it's not longer needed. Now the default log
	file is http.log; we used httpd.log, but it's good enough

diff --git a/bot2/pypybuildbot/master.py b/bot2/pypybuildbot/master.py
--- a/bot2/pypybuildbot/master.py
+++ b/bot2/pypybuildbot/master.py
@@ -4,22 +4,8 @@
 from buildbot.process.builder import Builder
 from pypybuildbot.pypylist import PyPyList
 
-# I really wanted to pass logPath to Site
-from twisted.web.server import Site
-class LoggingSite(Site):
-    def __init__(self, *a, **kw):
-        kw['logPath'] = 'httpd.log'
-        Site.__init__(self, *a, **kw)
-from twisted.web import server
-if server.Site.__name__ == 'Site':
-    server.Site = LoggingSite
-# So I did.
-
-
-from buildbot.status.web.build import StatusResourceBuild
+# Forbid "force build" with empty user name
 from buildbot.status.web.builder import StatusResourceBuilder
-
-# Forbid "force build" with empty user name
 def my_force(self, req):
     name = req.args.get("username", [""])[0]
     assert name, "Please write your name in the corresponding field."


More information about the pypy-commit mailing list