Island: Add helpful logging to MonkeyDownload resource

This commit is contained in:
Mike Salvatore 2022-03-03 13:48:18 -05:00
parent 928192b9b0
commit 515edf265a
1 changed files with 3 additions and 1 deletions

View File

@ -51,7 +51,9 @@ class MonkeyDownload(flask_restful.Resource):
def get_agent_executable_path(host_os: str) -> Path:
try:
agent_path = get_executable_full_path(AGENTS[host_os])
logger.debug(f"Monkey exec found for os: {host_os}, {agent_path}")
logger.debug(f'Local path for {host_os} executable is "{agent_path}"')
if not agent_path.is_file():
logger.error(f"File {agent_path} not found")
return agent_path
except KeyError: