add more logs

This commit is contained in:
Adil Hafeez 2025-05-15 12:00:09 -07:00
parent 400fa6d77b
commit 55d451190f
No known key found for this signature in database
GPG key ID: 9B18EF7691369645
2 changed files with 6 additions and 1 deletions

View file

@ -6,6 +6,7 @@ import sys
import yaml
from cli.utils import getLogger
from cli.consts import (
ARCHGW_DOCKER_IMAGE,
ARCHGW_DOCKER_NAME,
BRIGHTSTAFF_DOCKER_NAME,
KATANEMO_LOCAL_MODEL_LIST,
@ -57,7 +58,9 @@ def start_arch(arch_config_file, env, log_timeout=120, foreground=False):
path (str): The path where the prompt_config.yml file is located.
log_timeout (int): Time in seconds to show logs before checking for healthy state.
"""
log.info("Starting arch gateway")
log.info(
f"Starting arch gateway, image name: {ARCHGW_DOCKER_NAME}, tag: {ARCHGW_DOCKER_IMAGE}"
)
try:
archgw_container_status = docker_container_status(ARCHGW_DOCKER_NAME)

View file

@ -82,6 +82,8 @@ def docker_start_archgw_detached(
ARCHGW_DOCKER_IMAGE,
]
log.info("options: " + str(options))
result = subprocess.run(options, capture_output=True, text=True, check=False)
return result.returncode, result.stdout, result.stderr