From 748b28d57b20457f748ff03afc321bb23f3e2686 Mon Sep 17 00:00:00 2001 From: Nageswara Nandigam <84482346+nagworld9@users.noreply.github.com> Date: Fri, 13 Oct 2023 15:12:24 -0700 Subject: [PATCH] update warning message (#2946) (cherry picked from commit 33552eecc277a44a875f862bb3ae6a6f40334c49) --- azurelinuxagent/common/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurelinuxagent/common/version.py b/azurelinuxagent/common/version.py index 6450c4cab1..f85732da77 100644 --- a/azurelinuxagent/common/version.py +++ b/azurelinuxagent/common/version.py @@ -61,7 +61,7 @@ def get_daemon_version(): cmd = ["{0}".format(sys.executable), "-c", "from azurelinuxagent.common.version import AGENT_VERSION; print(AGENT_VERSION)"] daemon_version = shellutil.run_command(cmd) except Exception as e: # Make the best effort to get the daemon version, otherwise default to 0.0.0.0(unknown) - logger.warn("Failed to get the daemon version: {0}", ustr(e)) + logger.info("Failed to get the daemon version. The error is: {0} \n[This error can be ignored since it has no impact on customer. So we return as unknown version: 0.0.0.0]", ustr(e)) # set the daemon version to the environment variable to cache it for future calls. set_daemon_version(daemon_version) return FlexibleVersion(os.environ[__DAEMON_VERSION_ENV_VARIABLE])