SimpleXMLRPCServer - disable output
Skip Montanaro
skip at pobox.com
Thu Apr 14 16:42:42 EDT 2005
codecraig> I thought I posted this, but its been about 10min and hasnt
codecraig> shown up on the group.
Patience...
codecraig> localhost - - [14/Apr/2005 16:06:28] "POST /RPC2 HTTP/1.0" 200 -
codecraig> Anyhow, is there a way I can surpress that so its not printed
codecraig> to the console? I looked at SimpleXMLRPCServer.py ...it
codecraig> doesn't explicitly print that, I think perhaps std is...but
codecraig> not sure. Any ideas??
Introspection is your friend:
>>> import SimpleXMLRPCServer
>>> for a in dir(SimpleXMLRPCServer):
... matches = [m for m in dir(getattr(SimpleXMLRPCServer, a))
... if m.find("log") != -1]
... if matches:
... print "***", a, "***"
... print matches
...
*** SimpleXMLRPCRequestHandler ***
['log_date_time_string', 'log_error', 'log_message', 'log_request']
*** os ***
['getlogin']
Skip
More information about the Python-list
mailing list