Add vm name to log files

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-07-17 17:28:52 +03:00
parent 6e4511d584
commit 68d50de1eb
Signed by untrusted user who does not match committer: ari
GPG key ID: A50D5B4B599AF8A2

View file

@ -233,7 +233,7 @@ def dump_log(time: str) -> str:
_log_file: str = os.path.join(
CONFIG["logs-dir"],
f"{''.join(c.replace(' ', '-') for c in time if c not in special_characters)}.log",
f"{STATE['vm']}-{''.join(c.replace(' ', '-') for c in time if c not in special_characters)}.log",
)
log(f"Dumping chatlog to {_log_file!r}")