forked from p15670423/monkey
BB: Add error message when machine is missing interfaces
This commit is contained in:
parent
378e8d55ff
commit
d922d71081
|
@ -50,6 +50,7 @@ class MonkeyLogsDownloader(object):
|
||||||
try:
|
try:
|
||||||
machine_ip = machines[agent.machine_id].network_interfaces[0].ip
|
machine_ip = machines[agent.machine_id].network_interfaces[0].ip
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
LOGGER.error(f"Machine with ID {agent.machine_id} has no network interfaces")
|
||||||
machine_ip = "UNKNOWN"
|
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")
|
||||||
|
|
Loading…
Reference in New Issue