Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Don't log GC 0s at INFO (#5557)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkowl authored Jun 28, 2019
1 parent be3b901 commit 071150c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/5557.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Logging when running GC collection on generation 0 is now at the DEBUG level, not INFO.
5 changes: 4 additions & 1 deletion synapse/metrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,10 @@ def f(*args, **kwargs):
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)
Expand Down

0 comments on commit 071150c

Please sign in to comment.