Skip to content

Commit

Permalink
Add more useful logging for agent unit properties (#3154)
Browse files Browse the repository at this point in the history
  • Loading branch information
maddieford authored Jun 25, 2024
1 parent 5b98f1d commit 4dd6946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurelinuxagent/ga/cgroupconfigurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 4dd6946

Please sign in to comment.