Thanks for the info Jean-Paul. <br><br><div class="gmail_quote">On Wed, Jun 24, 2009 at 5:02 PM, Jean-Paul Calderone <span dir="ltr"><<a href="mailto:exarkun@divmod.com">exarkun@divmod.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Wed, 24 Jun 2009 16:53:58 -0500, Dustin Land <<a href="mailto:revenantstyle@gmail.com">revenantstyle@gmail.com</a>> wrote:<br>
>Greetings!<br>
><br>
>Currently I'm running two daemons that talk to each other over xmlrpc.<br>
>One runs an implementation of internet.TCPServer with an xmlrpc.XMLRPC<br>
>handler.<br>
>The other simply uses web.xmlrpc.Proxy.<br>
><br>
>In the logs for the first I get a flood of...<br>
>2009-06-24 15:31:35-0500 [-] 127.0.0.1 - - [24/Jun/2009:20:31:34 +0000]<br>
>"POST / HTTP/1.0" 200 297 "-" "Twisted/XMLRPClib"<br>
>In the second...<br>
>2009-06-24 16:44:13-0500 [-] Starting factory<br>
><twisted.web.xmlrpc._QueryFactory instance at 0x2d9afc8><br>
>2009-06-24 16:44:13-0500 [QueryProtocol,client] Stopping factory<br>
><twisted.web.xmlrpc._QueryFactory instance at 0x2d9afc8><br>
><br>
>Is there a way to disable this? I saw in the archives that<br>
>HTTPClientFactory.noisy can be set to False. Is there something similar for<br>
>both of these instances?<br>
<br>
</div></div>Not really.<br>
<br>
_QueryFactory is a subclass of ClientFactory, so like HTTPClientFactory, it<br>
has the `noisy´ attribute which controls whether it logs these messages. The<br>
trouble here is that you don't have access to the _QueryFactory instance. It<br>
might be a nice enhancement to either add a way to get at it, or perhaps to<br>
just give `Proxy´ a `noisy´ attribute which it copies onto the _QueryFactory<br>
instance it creates.<br>
<br>
It might also be nice to get rid of this `noisy´ stuff and instead have<br>
ClientFactory (and subclasses) always log this information, then teach the<br>
log observer (ie, the thing which actually writes these messages to a log<br>
file) how to be more selective in what it actually reports.<br>
<br>
Jean-Paul<br>
<br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</blockquote></div><br>