Skip to content

Commit

Permalink
Dump logs in wait_for_http in all other cases
Browse files Browse the repository at this point in the history
  • Loading branch information
palfrey committed Apr 2, 2024
1 parent 983bb96 commit fb3f11e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions integration_tests/test_banning_works.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ def wait_for_http(port: int, host: str = "localhost", timeout: float = 5.0):
"Waited too long for the port {} on host {} to start accepting "
"connections.".format(port, host)
) from ex
except Exception:
logs = subprocess.check_output(["docker-compose", "logs"], encoding="utf-8")
print("logs")
print(logs)
raise


def configure_ha(allowlist: list[str]) -> None:
Expand Down

0 comments on commit fb3f11e

Please sign in to comment.