[Buildbot-devel] html-access to the buildmaster
Alexander Lorenz
lorenz at testingtech.de
Wed Mar 15 19:15:02 UTC 2006
Brian Warner wrote:
>> is it possible to switch off logging of html access to the
>> buildmaster via configuration, or do i have to edit the code?
>>
>
> Alas, no. I poked around the code a bit, and couldn't find any simple
> way to
> turn off those log messages. Everything requires editing the code
> somewhere.
>
> You can make the HTTP logs go into a separate file, instead of the usual
> twistd.log file.. not the same as making them go away completely, but it
> might still be useful to you. I don't think you can make this file be
> /dev/null, however, because it's still going to want to rotate the
> logfile
> when it gets too big. (although maybe /dev/null never gets "too big"..
> I'm
> not sure.. give it a try and see what happens).
>
> To do this, you'd edit buildbot/status/html.py, in Waterfall.setup(), and
> change the line that says:
>
> self.site = server.Site(sr)
>
> to be:
>
> self.site = server.Site(sr, logPath="/path/to/logfile")
>
>
> You might be able to turn off HTTP logging altogether by editing the code
> that defines Twisted's web server. For this, you'd probably change
> twisted/web/http.py, in HTTPFactory.log(), and just put "return" as
> the first
> line there (bypassing the rest of the method). Note that this will affect
> *all* twisted web servers using that code.
>
> hope that helps,
> -Brian
>
>
i've just triked it out: it doesn't seem to work.
there are two html.py files by the way, one in
buildbot/status/
and one in
buildbot/build/lib/buildbot/status/
it does not have any effect, no matter which one i change: html log
still ends up in the twistd.log of the buildmaster.
in order to find out which html.py is used, i put in a syntax error on
purpose .... still no effekt, also no error trace ... strange ...
regards
lx
More information about the devel
mailing list