mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-31 03:39:06 +01:00
Merge pull request #1790 from matrix-org/erikj/linearizer
Add paranoia exception catch in Linearizer
This commit is contained in:
commit
d2b00d0866
1 changed files with 5 additions and 2 deletions
|
@ -192,8 +192,11 @@ class Linearizer(object):
|
||||||
logger.info(
|
logger.info(
|
||||||
"Waiting to acquire linearizer lock %r for key %r", self.name, key
|
"Waiting to acquire linearizer lock %r for key %r", self.name, key
|
||||||
)
|
)
|
||||||
with PreserveLoggingContext():
|
try:
|
||||||
yield current_defer
|
with PreserveLoggingContext():
|
||||||
|
yield current_defer
|
||||||
|
except:
|
||||||
|
logger.exception("Unexpected exception in Linearizer")
|
||||||
|
|
||||||
logger.info("Acquired linearizer lock %r for key %r", self.name, key)
|
logger.info("Acquired linearizer lock %r for key %r", self.name, key)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue