debug: add extensive logging to recreate_tunnel_endpoint

Adds INFO-level logging to trace exactly what happens during tunnel
recreation: container lookup, network membership, target IP/URL,
tunnel creation result, health check, and direct curl probe from API.

This will help diagnose why recreated tunnels return 502 while
original tunnels work.

Quality gates: ruff clean
This commit is contained in:
2026-05-30 14:42:25 +02:00
parent 4cc433a1b8
commit fdf78353ad
2 changed files with 74 additions and 35 deletions
+1 -3
View File
@@ -318,9 +318,7 @@ def get_container_ip_on_network(
return None
def is_container_on_network(
container_id: str, network_name: str | None = None
) -> bool:
def is_container_on_network(container_id: str, network_name: str | None = None) -> bool:
"""Check whether a container is already attached to a Docker network.
Args: