summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-05-28 15:57:53 +0100
committerErik Johnston <erik@matrix.org>2021-05-28 16:29:09 +0100
commit1641c5c707fe9cac5f68589863082409c8979da6 (patch)
tree8983681c97f3f00bc6000fcc086013791730e170
parentAllow response of `/send_join` to be larger. (#10093) (diff)
downloadsynapse-1641c5c707fe9cac5f68589863082409c8979da6.tar.xz
Log method and path when dropping request due to size limit (#10091)
-rw-r--r--changelog.d/10091.misc1
-rw-r--r--synapse/http/site.py4
2 files changed, 4 insertions, 1 deletions
diff --git a/changelog.d/10091.misc b/changelog.d/10091.misc
new file mode 100644

index 0000000000..dbe310fd17 --- /dev/null +++ b/changelog.d/10091.misc
@@ -0,0 +1 @@ +Log method and path when dropping request due to size limit. diff --git a/synapse/http/site.py b/synapse/http/site.py
index 671fd3fbcc..40754b7bea 100644 --- a/synapse/http/site.py +++ b/synapse/http/site.py
@@ -105,8 +105,10 @@ class SynapseRequest(Request): assert self.content, "handleContentChunk() called before gotLength()" if self.content.tell() + len(data) > self._max_request_body_size: 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.get_method(), + self.get_redacted_uri(), ) self.transport.abortConnection() return