yangtb24 commited on
Commit
affdb94
·
verified ·
1 Parent(s): df5a831

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -120,12 +120,13 @@ class EventEmitter:
120
  {"document": [content], "metadata": [{"name": title, "source": url, "html": False}]},
121
  )
122
 
123
-
124
  async def check_php_proxy_health():
125
  try:
126
  url = f"{PHP_PROXY_URL}/health"
 
127
  async with aiohttp.ClientSession() as session:
128
  async with session.get(url) as response:
 
129
  if response.ok:
130
  logging.info("PHP proxy health check passed.")
131
  return True
@@ -595,4 +596,4 @@ async def main():
595
 
596
 
597
  if __name__ == "__main__":
598
- asyncio.run(main())
 
120
  {"document": [content], "metadata": [{"name": title, "source": url, "html": False}]},
121
  )
122
 
 
123
  async def check_php_proxy_health():
124
  try:
125
  url = f"{PHP_PROXY_URL}/health"
126
+ logging.info(f"Checking PHP proxy health at: {url}")
127
  async with aiohttp.ClientSession() as session:
128
  async with session.get(url) as response:
129
+ logging.info(f"PHP proxy health check response status: {response.status}")
130
  if response.ok:
131
  logging.info("PHP proxy health check passed.")
132
  return True
 
596
 
597
 
598
  if __name__ == "__main__":
599
+ main()