diff --git a/zabbix_auto_config/processing.py b/zabbix_auto_config/processing.py index 3ac43c1..5d91416 100644 --- a/zabbix_auto_config/processing.py +++ b/zabbix_auto_config/processing.py @@ -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)