mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-02 07:06:40 -04:00
Don't log GC 0s at INFO (#5557)
This commit is contained in:
parent
be3b901ccd
commit
071150ce19
2 changed files with 5 additions and 1 deletions
1
changelog.d/5557.misc
Normal file
1
changelog.d/5557.misc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Logging when running GC collection on generation 0 is now at the DEBUG level, not INFO.
|
|
@ -437,7 +437,10 @@ def runUntilCurrentTimer(func):
|
||||||
counts = gc.get_count()
|
counts = gc.get_count()
|
||||||
for i in (2, 1, 0):
|
for i in (2, 1, 0):
|
||||||
if threshold[i] < counts[i]:
|
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()
|
start = time.time()
|
||||||
unreachable = gc.collect(i)
|
unreachable = gc.collect(i)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue