mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 21:04:54 -04:00
Add more useful logging when we block fetching events
This commit is contained in:
parent
48c3b7dc19
commit
0aff09f6c9
2 changed files with 14 additions and 0 deletions
|
@ -23,6 +23,10 @@ from synapse.util import unwrapFirstError
|
|||
|
||||
from contextlib import contextmanager
|
||||
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def sleep(seconds):
|
||||
|
@ -181,6 +185,7 @@ class Linearizer(object):
|
|||
self.key_to_defer[key] = new_defer
|
||||
|
||||
if current_defer:
|
||||
logger.info("Waiting to aquire linearizer lock for key %r", key)
|
||||
with PreserveLoggingContext():
|
||||
yield current_defer
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue