add logging

This commit is contained in:
bakatrouble 2023-03-30 23:00:56 +03:00
parent 658dec83cd
commit b4e6fe63f5

View File

@ -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):