I think you are using the SimpleXMLRPCServer class from the examples. In this case, just create the logRequests parameter when you create it:
server = SimpleXMLRPCServer(("localhost", 8000), logRequests = False)
This will suppress the registration of requests.
As for the exceptions, they are logged in to the BaseServer system (see the source code "SocketServer.py"):
def handle_error(self, request, client_address): """Handle an error gracefully. May be overridden. The default is to print a traceback and continue. """ print '-'*40 print 'Exception happened during processing of request from', print client_address import traceback traceback.print_exc()
As you can see, the first part is written to stdout, therefore &2>1 does not work completely. If you want to suppress them, override or overwrite this method.
source share