Skip to content

Commit

Permalink
Log goal state refresh and incarnation number (Azure#1794)
Browse files Browse the repository at this point in the history
  • Loading branch information
narrieta authored Mar 3, 2020
1 parent 148bf48 commit 76dcbfc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions azurelinuxagent/common/protocol/goal_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def __init__(self, wire_client, full_goal_state=False, base_incarnation=None):
self.remote_access = None
return

logger.info('Fetching new goal state [incarnation {0}]', self.incarnation)

uri = findtext(xml_doc, "HostingEnvironmentConfig")
xml_text = wire_client.fetch_config(uri, wire_client.get_header())
self.hosting_env = HostingEnv(xml_text)
Expand Down
2 changes: 1 addition & 1 deletion azurelinuxagent/ga/exthandlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def handle_ext_handler(self, ext_handler, etag):

self.log_etag = True

ext_handler_i.logger.info("Target handler state: {0}", state)
ext_handler_i.logger.info("Target handler state: {0} [incarnation {1}]", state, etag)
if state == u"enabled":
self.handle_enable(ext_handler_i)
elif state == u"disabled":
Expand Down
2 changes: 1 addition & 1 deletion azurelinuxagent/ga/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ def _upgrade_available(self, protocol, base_version=CURRENT_VERSION):
return False

family = conf.get_autoupdate_gafamily()
logger.verbose("Checking for agent family {0} updates", family)
logger.info("Checking for agent updates (family: {0})", family)

self.last_attempt_time = now

Expand Down

0 comments on commit 76dcbfc

Please sign in to comment.