##// END OF EJS Templates
test-static-http: flush access log per request...
Yuya Nishihara -
r34945:bf2db35a stable
parent child Browse files
Show More
@@ -26,12 +26,16 b" if os.environ.get('HGIPV6', '0') == '1':"
26 26 else:
27 27 simplehttpserver = httpserver.httpserver
28 28
29 class _httprequesthandler(httpserver.simplehttprequesthandler):
30 def log_message(self, format, *args):
31 httpserver.simplehttprequesthandler.log_message(self, format, *args)
32 sys.stderr.flush()
33
29 34 class simplehttpservice(object):
30 35 def __init__(self, host, port):
31 36 self.address = (host, port)
32 37 def init(self):
33 self.httpd = simplehttpserver(
34 self.address, httpserver.simplehttprequesthandler)
38 self.httpd = simplehttpserver(self.address, _httprequesthandler)
35 39 def run(self):
36 40 self.httpd.serve_forever()
37 41
General Comments 0
You need to be logged in to leave comments. Login now