From c050ef6f7a75ee873cc128a55630d41d5ec2e0d7 Mon Sep 17 00:00:00 2001 From: Nir Soffer Date: Thu, 22 Jun 2023 19:26:36 +0300 Subject: [PATCH] Log minikube commands in debug level Log the minikube commands in debug level to make it eaiser to understand failures on remote machines and verify changes in minikube commands. Example of the new logs: $ drenv start envs/test.yaml -v 2023-06-22 19:25:07,827 INFO [test] Starting environment 2023-06-22 19:25:07,920 INFO [cluster] Starting minikube cluster 2023-06-22 19:25:07,920 DEBUG [cluster] Running ['minikube', 'start', '--profile', 'cluster', '--driver', 'podman', '--container-runtime', 'cri-o', '--disk-size', '20g', '--nodes', '1', '--cni', 'auto', '--cpus', '2', '--memory', '2g', '--alsologtostderr'] ... $ drenv delete envs/test.yaml -v 2023-06-22 19:26:05,932 INFO [test] Deleting environment 2023-06-22 19:26:05,933 INFO [cluster] Deleting cluster 2023-06-22 19:26:05,933 DEBUG [cluster] Running ['minikube', 'delete', '--profile', 'cluster'] ... Signed-off-by: Nir Soffer --- test/drenv/minikube.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/drenv/minikube.py b/test/drenv/minikube.py index 962e07159..1bcc5db82 100644 --- a/test/drenv/minikube.py +++ b/test/drenv/minikube.py @@ -77,5 +77,6 @@ def _run(command, *args, profile=None, output=None): def _watch(command, *args, profile=None): cmd = ["minikube", command, "--profile", profile] cmd.extend(args) + logging.debug("[%s] Running %s", profile, cmd) for line in commands.watch(*cmd): logging.debug("[%s] %s", profile, line)