mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
fix log statements
This commit is contained in:
parent
ed1af449a5
commit
42225a7b54
2 changed files with 5 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue