Skip to content

Commit

Permalink
In telemetry, differentiate create_user google and email
Browse files Browse the repository at this point in the history
  • Loading branch information
sabaimran committed Nov 21, 2024
1 parent 9db885b commit 9fea02f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/khoj/routers/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async def login_magic_link(request: Request, form: MagicLinkForm):
update_telemetry_state(
request=request,
telemetry_type="api",
api="create_user",
api="create_user__email",
metadata={"server_id": str(user.uuid)},
)
logger.log(logging.INFO, f"🥳 New User Created: {user.uuid}")
Expand Down Expand Up @@ -174,7 +174,7 @@ async def auth(request: Request):
update_telemetry_state(
request=request,
telemetry_type="api",
api="create_user",
api="create_user__google",
metadata={"server_id": str(khoj_user.uuid)},
)
logger.log(logging.INFO, f"🥳 New User Created: {khoj_user.uuid}")
Expand Down

0 comments on commit 9fea02f

Please sign in to comment.