MCPcopy Create free account
hub / github.com/cloudflare/cloudflared / _log_cloudflared_logs

Function _log_cloudflared_logs

component-tests/util.py:184–194  ·  view source on GitHub ↗
(cfd_logs)

Source from the content-addressed store, hash-verified

182 send_request(s, tunnel_url, True)
183
184def _log_cloudflared_logs(cfd_logs):
185 log_file = cfd_logs
186 if os.path.isdir(cfd_logs):
187 files = os.listdir(cfd_logs)
188 if len(files) == 0:
189 return
190 log_file = os.path.join(cfd_logs, files[0])
191 with open(log_file, "r") as f:
192 LOGGER.warning("Cloudflared Tunnel was not ready:")
193 for line in f.readlines():
194 LOGGER.warning(line)
195
196
197@retry(stop_max_attempt_number=MAX_RETRIES, wait_fixed=BACKOFF_SECS * 1000)

Callers 1

wait_tunnel_readyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…