Make warning

This commit is contained in:
Erik Johnston 2024-06-19 10:50:01 +01:00
parent e25062ed75
commit 9e46ea43f4

View file

@ -626,13 +626,13 @@ async def start(hs: "HomeServer") -> None:
gc.freeze() gc.freeze()
def exit() -> None: def exit() -> None:
logger.info("Doing FREEZE") logger.warning("Doing FREEZE")
start = time.time() start = time.time()
gc.freeze() gc.freeze()
end = time.time() end = time.time()
logger.info("GC freeze took %d ms", (end - start) * 1000) logger.warning("GC freeze took %d ms", (end - start) * 1000)
# Speed up shutdowns by freezing all allocated objects. This moves everything # Speed up shutdowns by freezing all allocated objects. This moves everything
# into the permanent generation and excludes them from the final GC. # into the permanent generation and excludes them from the final GC.