Skip to content

Commit b30c8d8

Browse files
Getting docker container logs
1 parent f5f7c1a commit b30c8d8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests_integration/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ def postgres_docker_container() -> Generator[DockerContainer, None, None]:
2525
ports=[5432],
2626
) as container:
2727
wait_for_logs(container, "server started")
28+
stdout, stderr = container.get_logs()
29+
all_logs = stdout.decode("utf-8") + stderr.decode("utf-8")
30+
print("postgres container logs")
31+
print(all_logs)
2832
yield container
2933

3034

0 commit comments

Comments
 (0)