From af4c1efd1c33db68a3f833f37390028d977776c9 Mon Sep 17 00:00:00 2001 From: Untone Date: Sun, 17 Dec 2023 09:20:33 +0300 Subject: [PATCH] less-logs --- CHANGELOG.txt | 1 + services/auth.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 73cda952..18c9df95 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -3,6 +3,7 @@ - resolvers: added /new-author webhook resolver - resolvers: added reader.load_shouts_top_random - resolvers: added reader.load_shouts_unrated +- resolvers: community follower id property name is .author - services: auth connector upgraded diff --git a/services/auth.py b/services/auth.py index b45958b3..3457ed4f 100644 --- a/services/auth.py +++ b/services/auth.py @@ -28,7 +28,7 @@ async def check_auth(req) -> (bool, int | None): "variables": variables, "operationName": opeation, } - print(f"[services.auth] Graphql: {gql}") + # print(f"[services.auth] Graphql: {gql}") try: # Asynchronous HTTP request to the authentication server async with aiohttp.ClientSession() as session: @@ -71,7 +71,7 @@ def login_required(f): context = info.context # print(context) req = context.get("request") - print(f"[services.auth] login_required request headers: {req.headers}") + # print(f"[services.auth] login_required request headers: {req.headers}") # Performing authentication check is_authenticated, user_id = await check_auth(req) if not is_authenticated: