From 4dd6946eaab914c0a66e1426b3039ba67dc169b5 Mon Sep 17 00:00:00 2001 From: maddieford <93676569+maddieford@users.noreply.github.com> Date: Tue, 25 Jun 2024 16:52:57 -0700 Subject: [PATCH] Add more useful logging for agent unit properties (#3154) --- azurelinuxagent/ga/cgroupconfigurator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurelinuxagent/ga/cgroupconfigurator.py b/azurelinuxagent/ga/cgroupconfigurator.py index a36b9dae10..f18c23e3c5 100644 --- a/azurelinuxagent/ga/cgroupconfigurator.py +++ b/azurelinuxagent/ga/cgroupconfigurator.py @@ -206,7 +206,7 @@ def initialize(self): for metric in metrics: for prop in metric.get_unit_properties(): - log_cgroup_info('{0}: {1}'.format(prop, systemd.get_unit_property(systemd.get_agent_unit_name(), prop))) + log_cgroup_info('Agent {0} unit property value: {1}'.format(prop, systemd.get_unit_property(systemd.get_agent_unit_name(), prop))) if isinstance(metric, CpuMetrics): self.__set_cpu_quota(conf.get_agent_cpu_quota()) elif isinstance(metric, MemoryMetrics):