chore(engine): FXRT_BRIDGE_LOG diagnostic stderr bridge vao file

This commit is contained in:
2026-08-24 12:25:14 +07:00
parent e12a8d754a
commit 36aa15e2eb
+4 -1
View File
@@ -175,10 +175,13 @@ class FxRealtimeSession:
json.dump(job, f)
cmd = [exe, "--realtime-fx", self._job_path, "--shm", self.name,
"--parent", str(os.getpid())]
# FXRT_BRIDGE_LOG=<path>: bat stderr bridge (FxRTPerf) vao file — chan
# doan outFull/drop; mac dinh DEVNULL nhu cu.
_blog = os.environ.get("FXRT_BRIDGE_LOG") or ""
self.proc = subprocess.Popen(
cmd,
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
stderr=open(_blog, "ab", buffering=0) if _blog else subprocess.DEVNULL,
creationflags=getattr(subprocess, "CREATE_NO_WINDOW", 0),
)