From fc24d8041096c8466bccf4a8cad5601b0c9559e4 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 3 Oct 2022 07:51:40 -0400 Subject: [PATCH] BB: Change agent log file name Use underscores to improve readability --- .../blackbox/log_handlers/monkey_logs_downloader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/envs/monkey_zoo/blackbox/log_handlers/monkey_logs_downloader.py b/envs/monkey_zoo/blackbox/log_handlers/monkey_logs_downloader.py index 371c31c97..6f1815e2f 100644 --- a/envs/monkey_zoo/blackbox/log_handlers/monkey_logs_downloader.py +++ b/envs/monkey_zoo/blackbox/log_handlers/monkey_logs_downloader.py @@ -51,9 +51,9 @@ class MonkeyLogsDownloader(object): except IndexError: machine_ip = "UNKNOWN" - start_time = agent.start_time.strftime("%Y-%m-%d-%H-%M-%S") + start_time = agent.start_time.strftime("%Y-%m-%d_%H-%M-%S") - return self.log_dir_path / f"agent-{start_time}-{machine_ip}.log" + return self.log_dir_path / f"agent_{start_time}_{machine_ip}.log" @staticmethod def _write_log_to_file(log_file_path: Path, log_contents: str):