This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import threading | |
import SocketServer | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
import httplib2 | |
class QuietSimpleHTTPRequestHandler(SimpleHTTPRequestHandler): | |
"""Quiet http request handler | |
Subclasses SimpleHTTPRequestHandler in order to overwrite the log_message | |
method, letting us reduce output generated by the handler. Only standard | |
messages are overwritten, so errors will still be displayed. |