matrix: a real engine's log goes to the rig
This commit is contained in:
1 parent
651e64ff32
commit
6aa4663bf2
1 file changed
+2
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user