Bug 1533848 - Suppress HTTP 200 request log output, r=rwood.
authorBob Clary <bclary@bclary.com>
Tue, 16 Apr 2019 18:26:44 +0000
changeset 469776 dc74bceea27b
parent 469775 219832d78e12
child 469777 9ca0cca3edb0
push id35882
push usercbrindusan@mozilla.com
push dateWed, 17 Apr 2019 15:54:01 +0000
treeherdermozilla-central@37185c0ae520 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrwood
bugs1533848
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1533848 - Suppress HTTP 200 request log output, r=rwood. Depends on D26972 Differential Revision: https://phabricator.services.mozilla.com/D26973
testing/raptor/raptor/control_server.py
--- a/testing/raptor/raptor/control_server.py
+++ b/testing/raptor/raptor/control_server.py
@@ -24,16 +24,20 @@ def MakeCustomHandlerClass(results_handl
     class MyHandler(BaseHTTPServer.BaseHTTPRequestHandler, object):
 
         def __init__(self, *args, **kwargs):
             self.results_handler = results_handler
             self.shutdown_browser = shutdown_browser
             self.write_raw_gecko_profile = write_raw_gecko_profile
             super(MyHandler, self).__init__(*args, **kwargs)
 
+        def log_request(self, code='-', size='-'):
+            if code != 200:
+                super(MyHandler, self).log_request(code, size)
+
         def do_GET(self):
             # get handler, received request for test settings from web ext runner
             self.send_response(200)
             head, tail = os.path.split(self.path)
 
             if tail.startswith('raptor') and tail.endswith('.json'):
                 LOG.info('reading test settings from ' + tail)
                 try: