refactor: bound async log writer shutdown

This commit is contained in:
jxxghp
2026-08-24 15:20:10 +08:00
parent 8826219173
commit e9053a6562
8 changed files with 350 additions and 48 deletions
+2 -1
View File
@@ -493,6 +493,7 @@ def pytest_sessionfinish(session, exitstatus):
try:
from app.runtime.log import LoggerManager
LoggerManager.shutdown()
if LoggerManager.shutdown() is False:
raise RuntimeError("log writer did not converge")
except Exception as err:
_report_session_cleanup_error(session, "logger manager", err)