From 50016c0ba7d950d1cd8774111a4582d933a24ed5 Mon Sep 17 00:00:00 2001 From: Untone Date: Fri, 15 Dec 2023 16:55:12 +0300 Subject: [PATCH] auth-debug --- resolvers/author.py | 2 +- services/auth.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/resolvers/author.py b/resolvers/author.py index 7ea6e941..d32222a8 100644 --- a/resolvers/author.py +++ b/resolvers/author.py @@ -177,7 +177,7 @@ async def get_author(_, _info, slug="", author_id=None): elif author_id: q = select(Author).where(Author.id == author_id) q = add_author_stat_columns(q) - print(f"[resolvers.author] SQL: {q}") + # print(f"[resolvers.author] SQL: {q}") authors = get_authors_from_query(q) if authors: return authors[0] diff --git a/services/auth.py b/services/auth.py index e0efca5f..a0d76d66 100644 --- a/services/auth.py +++ b/services/auth.py @@ -71,6 +71,7 @@ def login_required(f): context = info.context # print(context) req = context.get("request") + print(f"[services.auth] request: {req}") # Performing authentication check is_authenticated, user_id = await check_auth(req) if not is_authenticated: