From b4e6fe63f5c87fa74caef4d0d963069aac4a02ae Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Thu, 30 Mar 2023 23:00:56 +0300 Subject: [PATCH] add logging --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index c2a5a7e..2ad45c8 100644 --- a/main.py +++ b/main.py @@ -24,8 +24,9 @@ dp = Dispatcher(bot) async def check_updates(): - + logging.warning('Waiting for lock...') async with redis.lock('e621:update'): + logging.warning('Lock acquired...') tag_list = [t.decode() for t in await redis.smembers('e621:subs')] tag_list.sort() for tl_idx in range(0, len(tag_list), 40):