diff --git a/monkey/infection_monkey/exploit/HostExploiter.py b/monkey/infection_monkey/exploit/HostExploiter.py index 86c966c92..274d07329 100644 --- a/monkey/infection_monkey/exploit/HostExploiter.py +++ b/monkey/infection_monkey/exploit/HostExploiter.py @@ -73,8 +73,8 @@ class HostExploiter(Plugin): result = None try: result = self._exploit_host() - except Exception as e: - logger.warning(f'Exception in exploit_host: {e}') + except Exception as _: + logger.error(f'Exception in exploit_host', exc_info=True) finally: self.post_exploit() return result