Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 1641c5c

Browse files
committed
Log method and path when dropping request due to size limit (#10091)
1 parent 84cf3e4 commit 1641c5c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

changelog.d/10091.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Log method and path when dropping request due to size limit.

synapse/http/site.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,10 @@ def handleContentChunk(self, data):
105105
assert self.content, "handleContentChunk() called before gotLength()"
106106
if self.content.tell() + len(data) > self._max_request_body_size:
107107
logger.warning(
108-
"Aborting connection from %s because the request exceeds maximum size",
108+
"Aborting connection from %s because the request exceeds maximum size: %s %s",
109109
self.client,
110+
self.get_method(),
111+
self.get_redacted_uri(),
110112
)
111113
self.transport.abortConnection()
112114
return

0 commit comments

Comments
 (0)