Question on how to supress console logging from BaseHTTPServer Module?

Alex new_name at mit.edu
Thu May 24 03:53:36 CEST 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