Skip to content

Commit 6912652

Browse files
committed
restore posthog
1 parent 6874dcb commit 6912652

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codeflash/telemetry/posthog_cf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def initialize_posthog(enabled: bool = True) -> None: # noqa: FBT001, FBT002
2121
return
2222

2323
global _posthog # noqa: PLW0603
24-
_posthog = Posthog(project_api_key="phc_aUO790jHd7z1SXwsYCz8dRApxueplZlZWeDSpKc5hol", host="https://us.posthog.com") # type: ignore[no-untyped-call]
24+
_posthog = Posthog(project_api_key="phc_aUO790jHd7z1SXwsYCz8dRApxueplZlZWeDSpKc5hol", host="https://us.posthog.com")
2525
_posthog.log.setLevel(logging.CRITICAL) # Suppress PostHog logging
2626
ph("cli-telemetry-enabled")
2727

@@ -41,6 +41,6 @@ def ph(event: str, properties: dict[str, Any] | None = None) -> None:
4141
user_id = get_user_id()
4242

4343
if user_id:
44-
_posthog.capture(distinct_id=user_id, event=event, properties=properties) # type: ignore[no-untyped-call]
44+
_posthog.capture(distinct_id=user_id, event=event, properties=properties)
4545
else:
4646
logger.debug("Failed to log event to PostHog: User ID could not be retrieved.")

0 commit comments

Comments
 (0)