|
@@ -319,7 +319,13 @@ class SynapseRequest(Request):
|
|
|
def _should_log_request(self) -> bool:
|
|
|
"""Whether we should log at INFO that we processed the request.
|
|
|
"""
|
|
|
- return self.path != b"/health"
|
|
|
+ if self.path == b"/health":
|
|
|
+ return False
|
|
|
+
|
|
|
+ if self.method == b"OPTIONS":
|
|
|
+ return False
|
|
|
+
|
|
|
+ return True
|
|
|
|
|
|
|
|
|
class XForwardedForRequest(SynapseRequest):
|