mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
add more logs
This commit is contained in:
parent
400fa6d77b
commit
55d451190f
2 changed files with 6 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue