Skip to content

Commit

Permalink
added verbose logging
Browse files Browse the repository at this point in the history
  • Loading branch information
nagworld9 committed Jan 11, 2024
1 parent 64b3468 commit 1dbe5c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions azurelinuxagent/ga/agent_update_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,13 @@ def _get_agent_family_manifest(self, goal_state):
agent_family_manifests.append(m)

if not family_found:
raise AgentFamilyMissingError(u"Agent family: {0} not found in the goal state: {1}, skipping agent update".format(family, self._gs_id))
raise AgentFamilyMissingError(u"Agent family: {0} not found in the goal state: {1}, skipping agent update \n"
u"[Note: This error is permanent for this goal state and Will not log same error until we receive new goal state]".format(family, self._gs_id))

if len(agent_family_manifests) == 0:
raise AgentFamilyMissingError(
u"No manifest links found for agent family: {0} for goal state: {1}, skipping agent update".format(
u"No manifest links found for agent family: {0} for goal state: {1}, skipping agent update \n"
u"[Note: This error is permanent for this goal state and will not log same error until we receive new goal state]".format(
family, self._gs_id))
return agent_family_manifests[0]

Expand Down

0 comments on commit 1dbe5c1

Please sign in to comment.