diff --git a/monkey/infection_monkey/exploit/HostExploiter.py b/monkey/infection_monkey/exploit/HostExploiter.py index b3bdc7fd8..59d593b09 100644 --- a/monkey/infection_monkey/exploit/HostExploiter.py +++ b/monkey/infection_monkey/exploit/HostExploiter.py @@ -79,8 +79,8 @@ class HostExploiter(Plugin): result = None try: result = self._exploit_host() - except FailedExploitationError: - logger.debug('Exploiter failed.', exc_info=True) + except FailedExploitationError as e: + logger.debug(f'Exploiter failed: {e}.') except Exception: logger.error('Exception in exploit_host', exc_info=True) finally: