mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-04 23:17:20 +08:00
refactor: bound async log writer shutdown
This commit is contained in:
+2
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user