diff options
author | Andrew Morgan <andrewm@element.io> | 2022-08-18 11:46:54 +0100 |
---|---|---|
committer | Andrew Morgan <andrewm@element.io> | 2022-08-18 11:46:54 +0100 |
commit | 40ce117f1f14ac669322f572b1aa44ceee38d63d (patch) | |
tree | 9c74852b9dbf2765b1f5a3ac7072da7ae346b536 | |
parent | Add metrics to track how the rate limiter is affecting requests (sleep/reject... (diff) | |
download | synapse-40ce117f1f14ac669322f572b1aa44ceee38d63d.tar.xz |
Downgrade 'Closing scope' error to warning; prevent hammering sentry
-rw-r--r-- | synapse/logging/scopecontextmanager.py | 2 |
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, |