[Twisted-Python] XMLRPC, how to prevent stdout on post and get?
Paul Thomas
spongelavapaul at googlemail.com
Tue Jul 19 14:11:52 EDT 2011
As a quick fix,
class QuietSite(server.Site):
"""Like a Site but quieter"""
def log(self, request):
pass
Then use QuietSite instead of server.Site
p.
On 19 Jul 2011, at 08:37, hbd666 wrote:
> I have a simple xmlrpc server written using Twisted. Every time I get a
> request to it, stdout spits out something like the following:
>
> 2011-07-19 00:33:39-0700 [HTTPChannel,332,127.0.0.1] 127.0.0.1 - -
> [19/Jul/2011:07:33:38 +0000] "POST / HTTP/1.0" 200 128 "-"
> "xmlrpclib.py/1.0.1 (by www.pythonware.com)"
>
>
> How do I prevent this from happening? I also do not want this going to
> a log file either.
>
> Thanks anybody for your help!
>
>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
More information about the Twisted-Python
mailing list