From 566ca14bb08132d3dec27f79225b33f6d4b291ab Mon Sep 17 00:00:00 2001 From: Ben White Date: Tue, 17 Dec 2024 11:51:59 +0100 Subject: [PATCH] Fix --- posthog/models/remote_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/models/remote_config.py b/posthog/models/remote_config.py index 0df66ac0e7398..e525fb80d28f1 100644 --- a/posthog/models/remote_config.py +++ b/posthog/models/remote_config.py @@ -386,8 +386,6 @@ def _purge_cdn(self): ): return - logger.info(f"Purging CDN for team {self.team_id}") - data: dict[str, Any] = {"files": []} for domain in settings.REMOTE_CONFIG_CDN_PURGE_DOMAINS: @@ -397,6 +395,8 @@ def _purge_cdn(self): data["files"].append({"url": f"{full_domain}/array/{self.team.api_token}/config.js"}) data["files"].append({"url": f"{full_domain}/array/{self.team.api_token}/array.js"}) + logger.info(f"Purging CDN for team {self.team_id}", {"data": data}) + try: res = requests.post( settings.REMOTE_CONFIG_CDN_PURGE_ENDPOINT,