Compare commits

...

2 Commits

Author SHA1 Message Date
Andrew Morgan
9108872355 changelog 2022-08-18 11:58:38 +01:00
Andrew Morgan
40ce117f1f Downgrade 'Closing scope' error to warning; prevent hammering sentry 2022-08-18 11:46:54 +01:00
2 changed files with 2 additions and 1 deletions

1
changelog.d/13552.misc Normal file
View File

@@ -0,0 +1 @@
Downgrade an error that had the capacity to spam Sentry instances to a warning.

View File

@@ -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,