Skip to content

Commit 92b3e83

Browse files
committed
TUN-4042: Capture cloudflared output to debug component tests
1 parent 4a7763e commit 92b3e83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

component-tests/util.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ def run_cloudflared_background(cmd, allow_input, capture_output):
4949
yield cfd
5050
finally:
5151
cfd.terminate()
52+
if capture_output:
53+
LOGGER.info(
54+
f"cloudflared log: {cfd.stderr.read()}")
5255

5356

5457
@retry(stop_max_attempt_number=MAX_RETRIES, wait_fixed=BACKOFF_SECS * 1000)

0 commit comments

Comments
 (0)