From d922d710817f9f2a9ad2d7725ec2e18e8bd5c71f Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 3 Oct 2022 10:14:48 -0400 Subject: [PATCH] BB: Add error message when machine is missing interfaces --- envs/monkey_zoo/blackbox/log_handlers/monkey_logs_downloader.py | 1 + 1 file changed, 1 insertion(+) 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 26ff851ed..31f87c309 100644 --- a/envs/monkey_zoo/blackbox/log_handlers/monkey_logs_downloader.py +++ b/envs/monkey_zoo/blackbox/log_handlers/monkey_logs_downloader.py @@ -50,6 +50,7 @@ class MonkeyLogsDownloader(object): try: machine_ip = machines[agent.machine_id].network_interfaces[0].ip except IndexError: + LOGGER.error(f"Machine with ID {agent.machine_id} has no network interfaces") machine_ip = "UNKNOWN" start_time = agent.start_time.strftime("%Y-%m-%d_%H-%M-%S")