matrix: a real engine's log goes to the rig

This commit is contained in:
Niko1221 committed 2026-10-15 16:06:02 +02:00
1 parent 651e64ff32
commit 6aa4663bf2
1 file changed
+2
+2
View File
@@ -154,6 +154,8 @@ class Rig:
if real_config is not None:
cfg = json.loads(real_config.read_text(encoding="utf-8"))
cfg.update({"host": "127.0.0.1", "port": self.port})
if cfg.get("log"):
cfg["log"] = str(root / "engine.log") # never the real install's log
self.config = root / "run.json"
self.config.write_text(json.dumps(cfg), encoding="utf-8")
else: