summary refs log tree commit diff
path: root/synapse/http
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-05-28 15:57:53 +0100
committerGitHub <noreply@github.com>2021-05-28 15:57:53 +0100
commit3f96dbbda7696bf1e2d6ec93ce66bbfece8fdc91 (patch)
tree77de7deb6aa655c50e504b2948e26f80120bdc43 /synapse/http
parentAdd `parse_strings_from_args` to get `prev_events` array (#10048) (diff)
downloadsynapse-3f96dbbda7696bf1e2d6ec93ce66bbfece8fdc91.tar.xz
Log method and path when dropping request due to size limit (#10091)
Diffstat (limited to 'synapse/http')
-rw-r--r--synapse/http/site.py4
1 files changed, 3 insertions, 1 deletions
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