diff --git a/monkey/infection_monkey/exploit/mssqlexec.py b/monkey/infection_monkey/exploit/mssqlexec.py index f6b44471a..c765c2de5 100644 --- a/monkey/infection_monkey/exploit/mssqlexec.py +++ b/monkey/infection_monkey/exploit/mssqlexec.py @@ -242,7 +242,8 @@ class MSSQLExploiter(HostExploiter): self.report_login_attempt(True, user, password) cursor = conn.cursor() return cursor - except pymssql.OperationalError: + except pymssql.OperationalError as err: + logger.info(f"Connection to MSSQL failed: {err}") self.report_login_attempt(False, user, password) # Combo didn't work, hopping to the next one pass