From 40ab66b43da056d77b41f372fc9b22e8e13fcf53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alo=C3=AFs=20Micard?= Date: Wed, 19 Feb 2025 11:46:28 +0100 Subject: [PATCH] Improve error logging --- app/__main__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/__main__.py b/app/__main__.py index 403f272..ab0cd73 100644 --- a/app/__main__.py +++ b/app/__main__.py @@ -114,7 +114,7 @@ def process_new_host_overrides(host_overrides: List[dict]): ) if r.status_code != 200: - print(f'Error while creating host override ({r.status_code})') + print(f'Error while creating host override {host_override["host"]} ({r.status_code})') sys.exit(1) @@ -143,7 +143,7 @@ def process_changed_host_overrides(pf_host_overrides: dict, host_overrides: List ) if r.status_code != 200: - print(f'Error while updating host override ({r.status_code})') + print(f'Error while updating host override {host_override["host"]} ({r.status_code})') sys.exit(1) @@ -164,7 +164,7 @@ def process_deleted_host_overrides(host_overrides: List[dict]): ) if r.status_code != 200: - print(f'Error while deleting host override ({r.status_code})') + print(f'Error while deleting host override {host_override["host"]} ({r.status_code})') sys.exit(1)