Skip to content

Commit

Permalink
fix: log to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
matmut7 committed Aug 8, 2024
1 parent 248f03e commit b2c5b97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from dotenv import load_dotenv

logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO, stream=sys.stderr)


def getRequiredEnv(key):
Expand Down Expand Up @@ -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'.")

0 comments on commit b2c5b97

Please sign in to comment.