From 6c1caa1af4a3a7e4296050f2c77eae9f6d601eea Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 14 Dec 2021 15:31:34 -0500 Subject: [PATCH] Agent: Improve log message for failed propagation --- monkey/infection_monkey/master/propagator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/monkey/infection_monkey/master/propagator.py b/monkey/infection_monkey/master/propagator.py index 33fc826ea..ef3bf92ea 100644 --- a/monkey/infection_monkey/master/propagator.py +++ b/monkey/infection_monkey/master/propagator.py @@ -139,7 +139,9 @@ class Propagator: if result.success: logger.info("Successfully propagated to {host} using {exploiter_name}") else: - logger.info(result.error_message) + logger.info( + f"Failed to propagate to {host} using {exploiter_name}: {result.error_message}" + ) self._telemetry_messenger.send_telemetry( ExploitTelem(exploiter_name, host, result.success, result.info, result.attempts)