diff options
author | Mark Haines <mjark@negativecurvature.net> | 2016-12-30 20:05:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-30 20:05:12 +0000 |
commit | 321d5b73d80541a9fd4c23df5cffdfd5b9356249 (patch) | |
tree | 0bafdba6cf08770fe1aa5d705210fad7d2a78452 /synapse/util/async.py | |
parent | Merge pull request #1734 from matrix-org/markjh/fix_get_missing (diff) | |
parent | s/aquire/acquire/g (diff) | |
download | synapse-321d5b73d80541a9fd4c23df5cffdfd5b9356249.tar.xz |
Merge pull request #1736 from matrix-org/markjh/linearizer_logging
Add more useful logging when we block fetching events
Diffstat (limited to 'synapse/util/async.py')
-rw-r--r-- | synapse/util/async.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/util/async.py b/synapse/util/async.py index 16ed183d4c..4280455cbe 100644 --- a/synapse/util/async.py +++ b/synapse/util/async.py @@ -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 acquire linearizer lock for key %r", key) with PreserveLoggingContext(): yield current_defer |