Agent: Improve log message for failed propagation

This commit is contained in:
Mike Salvatore 2021-12-14 15:31:34 -05:00
parent da61451947
commit 6c1caa1af4
1 changed files with 3 additions and 1 deletions

View File

@ -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)