Skip to content

Commit 2398b77

Browse files
committed
chore: log output to debug
1 parent d7f209b commit 2398b77

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: testinfra/test_ami_nix.py

+3
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)