add more logs

This commit is contained in:
Adil Hafeez 2025-05-15 11:31:22 -07:00
parent 9931cdcc39
commit 400fa6d77b
No known key found for this signature in database
GPG key ID: 9B18EF7691369645

View file

@ -94,10 +94,15 @@ def start_arch(arch_config_file, env, log_timeout=120, foreground=False):
current_time = time.time()
elapsed_time = current_time - start_time
if archgw_status == "exited":
log.info("archgw container exited unexpectedly.")
stream_gateway_logs(follow=False)
sys.exit(1)
# Check if timeout is reached
if elapsed_time > log_timeout:
log.info(f"stopping log monitoring after {log_timeout} seconds.")
break
sys.exit(1)
if prompt_gateway_health_check_status or llm_gateway_health_check_status:
log.info("archgw is running and is healthy!")