Skip to content

Commit f7d59ce

Browse files
committed
Better logs in DockerRunner
1 parent 0510a43 commit f7d59ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tagging/utils/docker_runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ def __exit__(
4444

4545
@staticmethod
4646
def exec_cmd(container: Container, cmd: str, print_output: bool = True) -> str:
47-
LOGGER.info(f"Running cmd: '{cmd}' on container: {container}")
47+
LOGGER.info(f"Running cmd: `{cmd}` on container: {container.name}")
4848
exec_result = container.exec_run(cmd)
4949
output = exec_result.output.decode().rstrip()
5050
assert isinstance(output, str)
5151
if print_output:
5252
LOGGER.info(f"Command output: {output}")
53-
assert exec_result.exit_code == 0, f"Command: {cmd} failed"
53+
assert exec_result.exit_code == 0, f"Command: `{cmd}` failed"
5454
return output

0 commit comments

Comments
 (0)