Skip to content

Commit 37bfc52

Browse files
committed
chore: log output to debug
1 parent 9609f67 commit 37bfc52

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

testinfra/test_ami_nix.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ def get_ssh_connection(instance_ip, ssh_identity_file, max_retries=10):
292292
)
293293

294294
def is_healthy(host, instance_ip, ssh_identity_file) -> bool:
295+
postgres_logs = host.run("journalctl -u postgresql")
296+
logger.warning(f"PostgreSQL logs: {postgres_logs.stdout}")
297+
295298
health_checks = [
296299
(
297300
"postgres",

0 commit comments

Comments
 (0)