SimpleXMLRPCServer -- turning off request log?

Vinay Sajip vinay_sajip at yahoo.co.uk
Fri Sep 26 03:14:13 EDT 2008


On Sep 26, 2:01 am, m... at pixar.com wrote:
> My SimpleXMLRPCServer program prints to stderr a line like
> this for each request:
>
> ohm..pixar.com - - [25/Sep/2008 17:57:50] "POST /RPC2 HTTP/1.0" 200 -
>
> Is there a way to turn thisloggingoff?  I have RTFM and can't
> seem to find a way to do so.
>

>From the documentation (2.5):

class SimpleXMLRPCServer( addr[, requestHandler[, logRequests[,
allow_none[, encoding]]]])

"If logRequests is true (the default), requests will be logged;
setting this parameter to false will turn off logging."

Did you try setting logRequests to false?

Regards,

Vinay Sajip



More information about the Python-list mailing list