mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 08:30:21 +00:00
Add paranoia exception catch in Linearizer
This commit is contained in:
parent
9898bbd9dc
commit
f477370c0c
1 changed files with 5 additions and 2 deletions
|
@ -192,8 +192,11 @@ class Linearizer(object):
|
|||
logger.info(
|
||||
"Waiting to acquire linearizer lock %r for key %r", self.name, key
|
||||
)
|
||||
with PreserveLoggingContext():
|
||||
yield current_defer
|
||||
try:
|
||||
with PreserveLoggingContext():
|
||||
yield current_defer
|
||||
except:
|
||||
logger.exception("Unexpected exception in Linearizer")
|
||||
|
||||
logger.info("Acquired linearizer lock %r for key %r", self.name, key)
|
||||
|
||||
|
|
Loading…
Reference in a new issue