summary refs log tree commit diff
path: root/synapse/metrics/__init__.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2019-07-02 12:05:33 +0100
committerRichard van der Hoff <richard@matrix.org>2019-07-02 12:05:33 +0100
commit24e48bc9ffaaef065d24d8d2de9d48fcf1be1ae4 (patch)
treefb41e26098e358f08a30c3af83aad9f06cae3e28 /synapse/metrics/__init__.py
parentMerge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes (diff)
parenttweak changelog (diff)
downloadsynapse-24e48bc9ffaaef065d24d8d2de9d48fcf1be1ae4.tar.xz
Merge branch 'release-v1.1.0' into matrix-org-hotfixes
Diffstat (limited to 'synapse/metrics/__init__.py')
-rw-r--r--synapse/metrics/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/metrics/__init__.py b/synapse/metrics/__init__.py

index 1f30179b51..eaf0aaa86e 100644 --- a/synapse/metrics/__init__.py +++ b/synapse/metrics/__init__.py
@@ -437,7 +437,10 @@ def runUntilCurrentTimer(func): counts = gc.get_count() for i in (2, 1, 0): if threshold[i] < counts[i]: - logger.info("Collecting gc %d", i) + if i == 0: + logger.debug("Collecting gc %d", i) + else: + logger.info("Collecting gc %d", i) start = time.time() unreachable = gc.collect(i)