mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 00:36:34 +02:00
fix cli models and logs (#196)
* removing unnecessar setup.py files * updated the cli for debug and access logs * ran the pre-commit locally to fix pull request * fixed bug where if archgw_process is None we didn't handle it gracefully * Apply suggestions from code review Co-authored-by: Adil Hafeez <adil@katanemo.com> * fixed changes based on PR * fixed version not found message * fixed message based on PR feedback * adding poetry lock * fixed pre-commit --------- Co-authored-by: Salman Paracha <salmanparacha@MacBook-Pro-261.local> Co-authored-by: Adil Hafeez <adil@katanemo.com>
This commit is contained in:
parent
6cd05572c4
commit
6fb63510b3
11 changed files with 362 additions and 274 deletions
|
|
@ -14,8 +14,6 @@ logging.basicConfig(
|
|||
|
||||
|
||||
def getLogger(name="cli"):
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(name)
|
||||
logger.setLevel(logging.INFO)
|
||||
return logger
|
||||
|
|
@ -32,7 +30,8 @@ def run_docker_compose_ps(compose_file, env):
|
|||
path (str): The path where the docker-compose.yml file is located.
|
||||
"""
|
||||
try:
|
||||
# Run `docker compose ps` to get the health status of each service
|
||||
# Run `docker compose ps` to get the health status of each service.
|
||||
# This should be a non-blocking call so using subprocess.Popen(...)
|
||||
ps_process = subprocess.Popen(
|
||||
[
|
||||
"docker",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue