diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2019-06-28 21:45:33 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-28 21:45:33 +1000 |
commit | 071150ce19305e7f7a54f9794a1c7f2a05bc0610 (patch) | |
tree | 2a9890ed89ebd77146c999b849906fd4f53ad47d /synapse | |
parent | Update the TLS cipher string and provide configurability for TLS on outgoing ... (diff) | |
download | synapse-071150ce19305e7f7a54f9794a1c7f2a05bc0610.tar.xz |
Don't log GC 0s at INFO (#5557)
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/metrics/__init__.py | 5 |
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) |