fix log statements

This commit is contained in:
Adil Hafeez 2025-05-15 22:46:10 -07:00
parent ed1af449a5
commit 42225a7b54
No known key found for this signature in database
GPG key ID: 9B18EF7691369645
2 changed files with 5 additions and 6 deletions

View file

@ -82,8 +82,6 @@ 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

View file

@ -294,17 +294,18 @@ def up(file, path, service, foreground):
def down(service):
"""Stops Arch."""
if service not in [SERVICE_NAME_ARCHGW, SERVICE_NAME_MODEL_SERVER, SERVICE_ALL]:
log.info(f"Error: Invalid service {service}. Exiting")
sys.exit(1)
verify_service_name(service)
if service == SERVICE_NAME_MODEL_SERVER:
stop_arch_modelserver()
elif service == SERVICE_NAME_ARCHGW:
stop_docker_container()
elif service == SERVICE_NAME_BRIGHTSTAFF:
stop_docker_container(SERVICE_NAME_BRIGHTSTAFF)
else:
stop_arch_modelserver()
stop_docker_container()
stop_docker_container(SERVICE_NAME_ARCHGW)
stop_docker_container(SERVICE_NAME_BRIGHTSTAFF)
@click.command()