Agent: Add a debug log message on successful auth to PowerShellClient

This commit is contained in:
Mike Salvatore 2022-03-14 12:54:23 -04:00 committed by Ilija Lazoroski
parent 5be0a3d6f9
commit e09f15b1bc
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ class PowerShellClient(IPowerShellClient):
# Attempt to execute dir command to know if authentication was successful. This will raise # Attempt to execute dir command to know if authentication was successful. This will raise
# an exception if authentication was not successful. # an exception if authentication was not successful.
self.execute_cmd("dir") self.execute_cmd("dir")
logger.debug("Successfully authenticated to remote PowerShell service")
def execute_cmd(self, cmd: str) -> str: def execute_cmd(self, cmd: str) -> str:
output, _, _ = self._client.execute_cmd(cmd) output, _, _ = self._client.execute_cmd(cmd)