Skip to content

Commit 84234fe

Browse files
author
Chris Stockton
committed
chore: add a little more log output and remove -r
1 parent 9e0c108 commit 84234fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testinfra/test_ami_nix.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,11 +376,11 @@ def is_healthy(ssh) -> bool:
376376
if not result["succeeded"]:
377377
info_text = ""
378378
info_command = (
379-
f"sudo journalctl -b -u {service} -n 10 -r --no-pager"
379+
f"sudo journalctl -b -u {service} -n 20 --no-pager"
380380
)
381381
info_result = run_ssh_command(ssh, info_command)
382382
if info_result["succeeded"]:
383-
info_text = info_result["stdout"].strip()
383+
info_text = "\n" + info_result["stdout"].strip()
384384

385385
logger.warning(f"{service} not ready{info_text}")
386386
return False

0 commit comments

Comments
 (0)