Question on how to supress console logging from BaseHTTPServer Module?

Alex new_name at mit.edu
Wed May 23 21:53:36 EDT 2001


Probably the best way is to subclass BaseHTTPServer and overwrite the
log_request method.  Something like

class quietHTTPServer(BaseHTTPServer):

    def log_request(self, code): pass

HTH
Alex.



More information about the Python-list mailing list