зеркало из https://github.com/mozilla/pluotsorbet.git
don't log successful requests to minimize test automation output
This commit is contained in:
Родитель
ae0c61e699
Коммит
ad71bca990
|
@ -10,6 +10,9 @@ class CustomRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
|||
self.send_header("Expires", "0")
|
||||
SimpleHTTPServer.SimpleHTTPRequestHandler.end_headers(self)
|
||||
|
||||
# Don't log successful requests to minimize test automation output.
|
||||
def log_request(self, code='-', size='-'): pass
|
||||
|
||||
port = 8000
|
||||
if len(sys.argv) > 1:
|
||||
port = int(sys.argv[1])
|
||||
|
|
Загрузка…
Ссылка в новой задаче