From 8284086c3a772a73b6679c92f7a5ecddc5fb9be1 Mon Sep 17 00:00:00 2001 From: Uchechukwu Orji Date: Mon, 5 Aug 2024 15:26:44 +0100 Subject: [PATCH] propage exception errors in log output --- worker/manager/src/mirrors_qa_manager/docker.py | 2 +- worker/manager/src/mirrors_qa_manager/worker.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/worker/manager/src/mirrors_qa_manager/docker.py b/worker/manager/src/mirrors_qa_manager/docker.py index 05af02a..deb60e7 100644 --- a/worker/manager/src/mirrors_qa_manager/docker.py +++ b/worker/manager/src/mirrors_qa_manager/docker.py @@ -142,7 +142,7 @@ def exec_command( result = container.exec_run(cmd) if result.exit_code != 0: raise APIError( - f"Unable to execute command {cmd} in {container.name}, " + f"unable to execute command {cmd} in {container.name}, " f"result: {result.output}, status: {result.exit_code}" ) return result # pyright: ignore[reportReturnType] diff --git a/worker/manager/src/mirrors_qa_manager/worker.py b/worker/manager/src/mirrors_qa_manager/worker.py index a8261f2..235731b 100644 --- a/worker/manager/src/mirrors_qa_manager/worker.py +++ b/worker/manager/src/mirrors_qa_manager/worker.py @@ -131,6 +131,7 @@ def wg_container_is_healthy(self) -> ExecResult | None: self.wg_healthcheck_cmd, ) except APIError: + logger.error("error whlie performing healthcheck: {exc!s}") return None def wg_healthcheck_till_healthy(self, conf_fpaths: list[Path]) -> ExecResult | None: