Skip to content

Commit

Permalink
Update posthog.py (#185)
Browse files Browse the repository at this point in the history
fixed DISABLE_TELEMETRY not working as intended

Signed-off-by: Lama Thématique <[email protected]>
  • Loading branch information
Lama-Thematique authored Jul 18, 2024
1 parent 12df077 commit de3fa21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fam/telemetry/posthog.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self):
project_api_key="phc_tk7IUlV7Q7lEa9LNbXxyC1sMWlCqiW6DkHyhJrbWMCS", host="https://eu.posthog.com"
)

if not os.getenv("ANONYMIZED_TELEMETRY", True) or "pytest" in sys.modules:
if not bool(os.getenv("ANONYMIZED_TELEMETRY", True)) or "pytest" in sys.modules:
self._posthog.disabled = True
logger.info("Anonymized telemetry disabled. See fam/telemetry/README.md for more information.")
else:
Expand Down

0 comments on commit de3fa21

Please sign in to comment.