From e7b45274cfd896a4fafb17e16803010b70d8fed8 Mon Sep 17 00:00:00 2001 From: pederhan Date: Thu, 15 Aug 2024 13:21:55 +0200 Subject: [PATCH] Log names of templates --- zabbix_auto_config/processing.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)