diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2019-01-29 11:05:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-29 11:05:31 +0000 |
commit | f815bd7feb2b439bb0a1b86b48726c4eae9439ba (patch) | |
tree | 6a01f4e57f31cc00079d69f02152dbc85685de59 | |
parent | Merge pull request #4494 from matrix-org/erikj/fixup_event_validator (diff) | |
download | synapse-f815bd7feb2b439bb0a1b86b48726c4eae9439ba.tar.xz |
Make linearizer more quiet (#4507)
Diffstat (limited to '')
-rw-r--r-- | changelog.d/4507.misc | 1 | ||||
-rw-r--r-- | synapse/util/async_helpers.py | 10 |
2 files changed, 6 insertions, 5 deletions
diff --git a/changelog.d/4507.misc b/changelog.d/4507.misc new file mode 100644 index 0000000000..baf45b2bec --- /dev/null +++ b/changelog.d/4507.misc @@ -0,0 +1 @@ +Reduce the log level of linearizer lock acquirement to DEBUG. diff --git a/synapse/util/async_helpers.py b/synapse/util/async_helpers.py index 430bb15f51..f0e4a0e10c 100644 --- a/synapse/util/async_helpers.py +++ b/synapse/util/async_helpers.py @@ -201,7 +201,7 @@ class Linearizer(object): if entry[0] >= self.max_count: res = self._await_lock(key) else: - logger.info( + logger.debug( "Acquired uncontended linearizer lock %r for key %r", self.name, key, ) entry[0] += 1 @@ -215,7 +215,7 @@ class Linearizer(object): try: yield finally: - logger.info("Releasing linearizer lock %r for key %r", self.name, key) + logger.debug("Releasing linearizer lock %r for key %r", self.name, key) # We've finished executing so check if there are any things # blocked waiting to execute and start one of them @@ -247,7 +247,7 @@ class Linearizer(object): """ entry = self.key_to_defer[key] - logger.info( + logger.debug( "Waiting to acquire linearizer lock %r for key %r", self.name, key, ) @@ -255,7 +255,7 @@ class Linearizer(object): entry[1][new_defer] = 1 def cb(_r): - logger.info("Acquired linearizer lock %r for key %r", self.name, key) + logger.debug("Acquired linearizer lock %r for key %r", self.name, key) entry[0] += 1 # if the code holding the lock completes synchronously, then it @@ -273,7 +273,7 @@ class Linearizer(object): def eb(e): logger.info("defer %r got err %r", new_defer, e) if isinstance(e, CancelledError): - logger.info( + logger.debug( "Cancelling wait for linearizer lock %r for key %r", self.name, key, ) |