diff --git a/config/gunicorn.conf.py b/config/gunicorn.conf.py index 602ffec..9de876b 100644 --- a/config/gunicorn.conf.py +++ b/config/gunicorn.conf.py @@ -87,7 +87,7 @@ def when_ready(server): # Add commit hash to the last line of banner banner_lines = banner_text.rstrip("\n").split("\n") if banner_lines: - banner_lines[-1] += f" {commit_hash}" + banner_lines[-1] += f" - {commit_hash}" print("\n".join(banner_lines)) print("Built for PLAY-WELL TEKNOLOGIES by contact@studspider.sh\n\n") diff --git a/studspider.py b/studspider.py index bd594af..479f8e5 100644 --- a/studspider.py +++ b/studspider.py @@ -15,20 +15,6 @@ SQUARE_WEBHOOK_SIGNATURE_KEY = sq_env.SQUARE_WEBHOOK_SIGNATURE_KEY SQUARE_WEBHOOK_URL = sq_env.SQUARE_WEBHOOK_URL SQUARE_LEGO_CAT_ID = sq_env.LEGO_CAT_ID - -# Debug: Print configuration only in development or once per process -# When running under gunicorn, the on_starting hook handles this -if not os.getenv("GUNICORN_CMD_ARGS"): - if SQUARE_WEBHOOK_SIGNATURE_KEY: - print(f"[CONFIG] Signature key loaded: {SQUARE_WEBHOOK_SIGNATURE_KEY[:10]}...") - else: - print("[CONFIG] WARNING: SQUARE_WEBHOOK_SIGNATURE_KEY not set!") - - if SQUARE_WEBHOOK_URL: - print(f"[CONFIG] Webhook URL: {SQUARE_WEBHOOK_URL}") - else: - print("[CONFIG] WARNING: SQUARE_WEBHOOK_URL not set!") - # In-memory store for processed event IDs (idempotency) processed_event_ids = set() MAX_STORED_EVENT_IDS = 10000