From 4ca884f257b847175a09b69187d149e9cd2b6a8f Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 21 Feb 2024 13:27:00 +0300 Subject: [PATCH] debug-get-author-but-userid --- resolvers/author.py | 1 + 1 file changed, 1 insertion(+) diff --git a/resolvers/author.py b/resolvers/author.py index 9e1bb1e9..488cd2ed 100644 --- a/resolvers/author.py +++ b/resolvers/author.py @@ -194,6 +194,7 @@ async def get_author_by_user_id(user_id: str): redis_key = f"user:{user_id}:author" res = await redis.execute("HGET", redis_key) if isinstance(res, dict) and res.get("id"): + logger.debug(f'got cached author: {res}') return res logger.info(f"getting author id for {user_id}")