From b2c5b972b49d21c576486906ef3dff5842b72b37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=A9o=20M=C3=A9vollon?= Date: Thu, 8 Aug 2024 19:16:23 +0200 Subject: [PATCH] fix: log to stderr --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 436d3e3..b7043e3 100644 --- a/main.py +++ b/main.py @@ -7,6 +7,7 @@ from dotenv import load_dotenv logger = logging.getLogger(__name__) +logging.basicConfig(level=logging.INFO, stream=sys.stderr) def getRequiredEnv(key): @@ -154,5 +155,6 @@ def findStatusInInstance(response): logger.error(f"Could not find instance with name {instanceName}") sys.exit(1) client.delete(f"/cloud/project/{serviceName}/instance/{instanceId}") + logger.info("Deleted instance") else: logger.error("Invalid action. Use 'create' or 'delete'.")