On 7/19/2011 11:11 AM, Paul Thomas wrote:
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@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Thanks, that worked for my application. Though I still do see a need to modify the API as suggested earlier, because it would be more specific to the XMLRPC, and just in case there is more than one protocol for a server site for an application - wouldn't want to kill logging for all protocols.