Skip to content

Commit

Permalink
added logging
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorwalton committed Sep 3, 2024
1 parent a079556 commit 2b2d033
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/app/agents/wazuh/services/vulnerabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ async def collect_agent_vulnerabilities(agent_id: str, vulnerability_severity: s
)
if response["success"] is False:
raise HTTPException(status_code=500, detail=response["message"])
logger.info(f"Vulnerabilities collected for severity {severity}: {response}")
agent_vulnerabilities.extend(response["data"].get("affected_items", []))

processed_vulnerabilities = process_agent_vulnerabilities(agent_vulnerabilities)
Expand Down

0 comments on commit 2b2d033

Please sign in to comment.