Skip to content

Commit

Permalink
Log names of templates
Browse files Browse the repository at this point in the history
  • Loading branch information
pederhan committed Aug 15, 2024
1 parent 554b92e commit e7b4527
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zabbix_auto_config/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,9 @@ def set_templates(self, templates: List[Template], host: Host) -> None:
try:
self.api.link_templates_to_hosts(templates, [host])
except ZabbixAPIException as e:
logging.error("Error when setting templates on host %s: %s", host, e)
logging.error(
"Error when setting templates %s on host %s: %s", to_add, host, e
)
else:
logging.info("Set templates %s on host: %s", to_add, host)

Expand Down

0 comments on commit e7b4527

Please sign in to comment.