Skip to content

Commit

Permalink
more error logging on httpd startup
Browse files Browse the repository at this point in the history
  • Loading branch information
icing committed Jan 13, 2025
1 parent 2013a1b commit 60bdf93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/pyhttpd/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,8 @@ def is_live(self, url: str = None, timeout: timedelta = None):
time.sleep(.1)
log.debug(f"Unable to contact server after {timeout}")
if r:
log.error(f"curl stderr: {r.stderr}")
log.error(f"curl exit={r.exit_code} stderr={r.stderr} stdout={r.stdout}")
log.error(f"httpd_error_log={open(self._error_log.path).readlines()}")
return False

def is_dead(self, url: str = None, timeout: timedelta = None):
Expand Down

0 comments on commit 60bdf93

Please sign in to comment.