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,