Silence HTTP request logging in mock StaticHTTPServer for Bzlmod tests. Bzlmod tests querying multiple registries trigger expected HTTP 404 responses on local mock registries before falling back to BCR. Python's `SimpleHTTPRequestHandler` logs each of these to stderr by default, dumping hundreds of kilobytes of 404 noise that flood CI logs and truncate failure output. Overriding `log_message` in `_Handler` silences this routine request traffic. PiperOrigin-RevId: 972576849 Change-Id: I9b26db00c57f9e0ed3a7c576ea9da16b0d8f90cb
diff --git a/src/test/py/bazel/bzlmod/test_utils.py b/src/test/py/bazel/bzlmod/test_utils.py index 52c1f7d..6877d04 100644 --- a/src/test/py/bazel/bzlmod/test_utils.py +++ b/src/test/py/bazel/bzlmod/test_utils.py
@@ -493,3 +493,8 @@ def do_GET(self): if self.check_auth(): return super().do_GET() + + def log_message(self, *args, **kwargs): + # Suppress logging to prevent dumping hundreds of 404s to stderr + # when Bazel queries fallback registries. + pass