summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrewm@element.io>2022-08-18 11:46:54 +0100
committerAndrew Morgan <andrewm@element.io>2022-08-18 11:46:54 +0100
commit40ce117f1f14ac669322f572b1aa44ceee38d63d (patch)
tree9c74852b9dbf2765b1f5a3ac7072da7ae346b536
parentAdd metrics to track how the rate limiter is affecting requests (sleep/reject... (diff)
downloadsynapse-40ce117f1f14ac669322f572b1aa44ceee38d63d.tar.xz
Downgrade 'Closing scope' error to warning; prevent hammering sentry
-rw-r--r--synapse/logging/scopecontextmanager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/logging/scopecontextmanager.py b/synapse/logging/scopecontextmanager.py
index 10877bdfc5..880404810e 100644
--- a/synapse/logging/scopecontextmanager.py
+++ b/synapse/logging/scopecontextmanager.py
@@ -156,7 +156,7 @@ class _LogContextScope(Scope):
     def close(self) -> None:
         active_scope = self.manager.active
         if active_scope is not self:
-            logger.error(
+            logger.warning(
                 "Closing scope %s which is not the currently-active one %s",
                 self,
                 active_scope,