Skip to content

Commit

Permalink
chore: not capture-rs in debug (#26765)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra authored Dec 9, 2024
1 parent 6cdc10a commit 2f8cda0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion posthog/api/decide.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ def get_decide(request: HttpRequest):
else False
)

if str(team.id) not in (settings.NEW_ANALYTICS_CAPTURE_EXCLUDED_TEAM_IDS or []):
# this not settings.DEBUG check is a lazy workaround because
# NEW_ANALYTICS_CAPTURE_ENDPOINT doesn't currently work in DEBUG mode
if not settings.DEBUG and str(team.id) not in (settings.NEW_ANALYTICS_CAPTURE_EXCLUDED_TEAM_IDS or []):
response["analytics"] = {"endpoint": settings.NEW_ANALYTICS_CAPTURE_ENDPOINT}

if str(team.id) not in (settings.ELEMENT_CHAIN_AS_STRING_EXCLUDED_TEAMS or []):
Expand Down

0 comments on commit 2f8cda0

Please sign in to comment.