Question on how to supress console logging from BaseHTTPServer Module?
DavidLNoSpammy at raqia.com
Thu May 24 15:30:34 CEST 2001
Thanks, this works great. I am an OO newbie or I would have immediately
done this. I added:
def send_response(self, code, message=None):
One minor thing, I still had to go to the BaseHTTPServer.py module and
add the subclassing, rather than having it in my program code. Clearly
there is something really basic about namespace that I am missing. Any
idea what the problem is?
> 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
More information about the Python-list