Skip to content

Commit

Permalink
propage exception errors in log output
Browse files Browse the repository at this point in the history
  • Loading branch information
elfkuzco committed Aug 5, 2024
1 parent 5c467e2 commit 8284086
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion worker/manager/src/mirrors_qa_manager/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
1 change: 1 addition & 0 deletions worker/manager/src/mirrors_qa_manager/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8284086

Please sign in to comment.