From 00a67e9524b5e8d3ce06f0ec18d1b7106ff59291 Mon Sep 17 00:00:00 2001 From: sabaimran Date: Fri, 5 Apr 2024 13:19:24 +0530 Subject: [PATCH] Add additional log lines when configuring the Notion settings for a user in the callback --- src/khoj/routers/notion.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/khoj/routers/notion.py b/src/khoj/routers/notion.py index d8fd0c26..bbf39274 100644 --- a/src/khoj/routers/notion.py +++ b/src/khoj/routers/notion.py @@ -69,8 +69,12 @@ async def notion_auth_callback(request: Request, background_tasks: BackgroundTas final_response = response.json() + logger.info(f"Notion auth callback response: {final_response}") + access_token = final_response.get("access_token") - NotionConfig.objects.acreate(token=access_token, user=user) + notion_config = NotionConfig.objects.acreate(token=access_token, user=user) + + logger.info(f"Notion config created: {notion_config}") owner = final_response.get("owner") workspace_id = final_response.get("workspace_id")