mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Add paranoia exception catch in Linearizer
This commit is contained in:
parent
9898bbd9dc
commit
f477370c0c
@ -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 New Issue
Block a user