Skip to content
Snippets Groups Projects
Unverified Commit 3f96dbbd authored by Erik Johnston's avatar Erik Johnston Committed by GitHub
Browse files

Log method and path when dropping request due to size limit (#10091)

parent ac3e02d0
No related branches found
No related tags found
No related merge requests found
Log method and path when dropping request due to size limit.
...@@ -105,8 +105,10 @@ class SynapseRequest(Request): ...@@ -105,8 +105,10 @@ class SynapseRequest(Request):
assert self.content, "handleContentChunk() called before gotLength()" assert self.content, "handleContentChunk() called before gotLength()"
if self.content.tell() + len(data) > self._max_request_body_size: if self.content.tell() + len(data) > self._max_request_body_size:
logger.warning( logger.warning(
"Aborting connection from %s because the request exceeds maximum size", "Aborting connection from %s because the request exceeds maximum size: %s %s",
self.client, self.client,
self.get_method(),
self.get_redacted_uri(),
) )
self.transport.abortConnection() self.transport.abortConnection()
return return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment